This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] DWARF2 macro info double start file
- From: Daniel Berlin <dan at dberlin dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 27 Mar 2002 21:07:34 -0500 (EST)
- Subject: [PATCH] DWARF2 macro info double start file
When I originally added the code, we used to get no start source file for
the primary source file (or end, for that matter).
Now that we do, this code is no longer needed, and causes two start files
to be emitted in the macro info.
Okay for mainline and branch?
2002-03-27 Daniel Berlin <dan@dberlin.org>
* dwarf2out.c (dwarf2out_define): Remove start_source_file call,
CPP will start the file for us.
Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.356.2.2
diff -c -3 -p -w -B -b -r1.356.2.2 dwarf2out.c
*** dwarf2out.c 2002/02/26 22:57:20 1.356.2.2
--- dwarf2out.c 2002/03/28 01:59:01
*************** dwarf2out_define (lineno, buffer)
*** 11924,11936 ****
unsigned lineno ATTRIBUTE_UNUSED;
const char *buffer ATTRIBUTE_UNUSED;
{
- static int initialized = 0;
- if (!initialized)
- {
- dwarf2out_start_source_file (0, primary_filename);
- initialized = 1;
- }
-
if (debug_info_level >= DINFO_LEVEL_VERBOSE)
{
named_section_flags (DEBUG_MACINFO_SECTION, SECTION_DEBUG);
--- 11924,11929 ----