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: RFA: give the return column a size (Was: Re: RFA: Use _Unwind_Ptr)


Joern Rennecke wrote:
	* dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
	If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode,
	look at RETURN_ADDR_RTX.

It isn't safe to use RETURN_ADDR_RTX this way. Not all ports define it. m68k for instance does not. All ports define INCOMING_RETURN_ADDR_RTX, but they don't define it with a usable mode, so you can't use that either.


I'd suggest just using Pmode here. Any port which doesn't use a Pmode return address is probably either broken, or shouldn't be sharing the return address column with another register.

So I suggest hardcoding save_mode to Pmode, and getting rid of all of the stuff that calls RETURN_ADDR_RTX. The patch is OK with that change.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com



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