This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: debug_macinfo buglet
- From: Jim Blandy <jimb at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 24 May 2002 14:19:09 -0500
- Subject: Re: debug_macinfo buglet
- References: <Pine.LNX.4.44.0205171154530.5015-100000@dberlin.org><npelgaqxbo.fsf@zwingli.cygnus.com>
I've committed the following patch.
(The message quoted below, sent to dberlin@dberlin.org, bounced, so I
don't have a definite reply from him.)
Jim Blandy <jimb@redhat.com> writes:
> Daniel Berlin <dberlin@dberlin.org> writes:
> > Jim, that answers *that* question, I guess.
> >
> > Could you commit the patch to fix this as obvious?
>
> Is this the patch you mean?
>
> 2002-03-27 Jim Blandy <jimb@redhat.com>
>
> * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
> entry with a type code of zero, marking the end of the compilation
> unit's macro info.
>
> Index: gcc/dwarf2out.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
> retrieving revision 1.363
> diff -c -r1.363 dwarf2out.c
> *** gcc/dwarf2out.c 2002/03/20 07:58:19 1.363
> --- gcc/dwarf2out.c 2002/03/28 00:12:25
> ***************
> *** 12285,12290 ****
> --- 12285,12291 ----
> {
> named_section_flags (DEBUG_MACINFO_SECTION, SECTION_DEBUG);
> dw2_asm_output_data (1, DW_MACINFO_end_file, "End file");
> + dw2_asm_output_data (1, 0, "End compilation unit");
> }
>
> /* If we emitted any DW_FORM_strp form attribute, output the string