[debug/13267] proposed patch to dwarf2out.c

DJ Delorie dj@redhat.com
Fri Mar 5 21:26:00 GMT 2004


> Just grepping dwarf2out.c for BYTES_BIG_ENDIAN, I see that there is 
> already big-endian correction code in rtl_for_decl_location, and the rtl 
> you are trying to fix was generated by rtl_for_decl_location.  So it 
> appears that the real problem here is in rtl_for_decl_location, not in 
> add_location_or_const_value_attribute.

Ok, I did some debugging.  At the time the code in
rtl_for_decl_location is called,the rtl for that parameter is a REG.
The code checks for MEMs (and the bug only happens when it's a MEM
anyway), so never catches that case.

That's probably why the bug is only reproducible if you include the
"register" keyword.



More information about the Gcc-patches mailing list