[Committed] S/390: Define DWARF2_ASM_LINE_DEBUG_INFO

Andreas Krebbel krebbel@linux.vnet.ibm.com
Tue Mar 5 12:03:00 GMT 2013


Hi,

the attached patch enables the debug line infos to be generated from
the asm listing for s390.  With the patch two testsuite failures
disappear.

< FAIL: gcc.dg/debug/dwarf2/asm-line1.c scan-assembler is_stmt 1
< FAIL: gnat.dg/return3.adb scan-assembler loc 1 6

Committed to mainline.

Bye,

-Andreas-

2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.

---
 gcc/config/s390/s390.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: gcc/config/s390/s390.h
===================================================================
*** gcc/config/s390/s390.h.orig
--- gcc/config/s390/s390.h
*************** extern const enum reg_class regclass_map
*** 591,596 ****
--- 591,599 ----
  /* Register save slot alignment.  */
  #define DWARF_CIE_DATA_ALIGNMENT (-UNITS_PER_LONG)
  
+ /* Let the assembler generate debug line info.  */
+ #define DWARF2_ASM_LINE_DEBUG_INFO 1
+ 
  
  /* Frame registers.  */
  



More information about the Gcc-patches mailing list