>>>>> Mark Shinwell writes: Mark> If the hard frame pointer is forced by default, then targets which are Mark> particularly badly affected can simply define INITIAL_FRAME_ADDRESS_RTX. Mark> Since such targets would presumably not have to force reload to keep Mark> the frame pointer, then definitions of such macros would not need to Mark> be side-effecting (in the way described earlier in this thread) and thus Mark> be satisfactory.
PowerPC also does not need hard_frame_pointer_rtx for all cases. It seems like a bad idea to force every port to define INITIAL_FRAME_ADDRESS_RTX to avoid a penalty. Why can't whatever port needs this change define INITIAL_FRAME_ADDRESS_RTX to hard_frame_pointer_rtx? One could add "count" to the macro so that the port can optimize further and avoid hard_frame_pointer_rtx, if possible. David