[PATCH] DWARF2 macro info double start file

Daniel Berlin dan@dberlin.org
Wed Mar 27 18:07:00 GMT 2002


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 ----



More information about the Gcc-patches mailing list