From: Jeffrey A Law Date: Mon, 2 Aug 1999 05:18:14 +0000 (+0000) Subject: dwarf2out.c (output_abbrev_section): Terminate with a zero. X-Git-Tag: releases/gcc-2.95.1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca74e2857a76aa3082c20a31b984c74c337ba07e;p=thirdparty%2Fgcc.git dwarf2out.c (output_abbrev_section): Terminate with a zero. Tue Jul 20 12:37:30 1999 Hans-Peter Nilsson * dwarf2out.c (output_abbrev_section): Terminate with a zero. From-SVN: r28386 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3ec8ea0679cb..358828434e65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 + * dwarf2out.c (output_abbrev_section): Terminate with a zero. + Thu Jul 15 15:40:09 1999 Jim Wilson * tree.c (build_type_attribute_variant): Move current_obstack restore after build_qualified_type call. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 2e29c72c3598..2fe888f543d8 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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). */