Stability analysis of the Gurtin-MacCamy model