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: [debug/13267] proposed patch to dwarf2out.c


On Tue, 2004-04-20 at 10:32, DJ Delorie wrote:
> 	* dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
> 	variables stored in word registers, then in memory.

The last sentence of the comment is wrong.  The comment says we can't
fix this in rtl_for_decl_location, but we are fixing it there.  This
must be left over from an earlier version of the patch.

In the interests of speed, it is probably a good idea to add a mode
check, i.e.
	GET_MODE (rtl) != TYPE_MODE (TREE_TYPE (decl))
there is no point in doing the calculations if the modes are the same,
and this will be true almost all of the time.

Otherwise this is OK.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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