This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC [reload1] maybe share op_addr reloads


> A rather desperate hack would be to use LEGITIMIZE_RELOAD_ADDRESS to

Another thought I had was to use get_hard_reg_initial_val() as the
official "frame pointer" and hope that gcc was smart enough to use $fp
or an address reg as appropriate.  I originally wrote that for a port
that has a register somewhat like MIPS %gp, but I've never tried it
with an eliminatable register.

Although, $sp has limited offsets too, so if it's eliminatable, we
also don't need to worry about the $fp offset ;-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]