]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dwarf2out.c (output_abbrev_section): Terminate with a zero.
authorJeffrey A Law <law@cygnus.com>
Mon, 2 Aug 1999 05:18:14 +0000 (05:18 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 2 Aug 1999 05:18:14 +0000 (23:18 -0600)
        Tue Jul 20 12:37:30 1999  Hans-Peter Nilsson  <hp@bitrange.com>
        * dwarf2out.c (output_abbrev_section): Terminate with a zero.

From-SVN: r28386

gcc/ChangeLog
gcc/dwarf2out.c

index 3ec8ea0679cb01791e30982dd1b6ed3ecd8d9081..358828434e658a8e4d31f62b54ba9669f56022a4 100644 (file)
@@ -3,6 +3,9 @@ Sun Aug  1 22:46:42 1999  Jeffrey A Law  (law@cygnus.com)
        * m68k.c (output_function_prologue): Fix typo in CPU32 case.
        (output_function_epilogue): Similarly.
 
+       Tue Jul 20 12:37:30 1999  Hans-Peter Nilsson  <hp@bitrange.com>
+        * dwarf2out.c (output_abbrev_section): Terminate with a zero.
+
        Thu Jul 15 15:40:09 1999  Jim Wilson  <wilson@cygnus.com>
        * tree.c (build_type_attribute_variant): Move current_obstack restore
        after build_qualified_type call.
index 2e29c72c359852332eaa3c1ed9c58ce39437d637..2fe888f543d82473c0eb809f527c458736beab52 100644 (file)
@@ -5135,6 +5135,11 @@ output_abbrev_section ()
 
       fprintf (asm_out_file, "\t%s\t0,0\n", ASM_BYTE_OP);
     }
+
+  /* We need to properly terminate the abbrev table for this
+     compilation unit, as per the standard, and not rely on
+     workarounds in e.g. gdb.  */
+  fprintf (asm_out_file, "\t%s\t0\n", ASM_BYTE_OP);
 }
 
 /* Output location description stack opcode's operands (if any).  */