This is the mail archive of the
mailing list for the GCC project.
Re: [debug/13267] proposed patch to dwarf2out.c
> 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
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