[Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 3 16:08:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48853

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-03 16:04:42 UTC ---
Created attachment 24170
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24170
gcc47-pr48853.patch

This patch should fix var2.c on ia64-hpux - the patch will for memory addresses
only (i.e. when mem_mode is not VOIDmode) allow SYMBOL_REFs/LABEL_REFs/CONST of
larger mode than DWARF2_ADDR_SIZE, assuming it is Pmode and ptr_mode has
DWARF2_ADDR_SIZE.  It is a total mess though, because whether it is sign
extended or zero extended or something else isn't actually represented in the
debug info, the debug info consumer needs to know.



More information about the Gcc-bugs mailing list