This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Avoid bad entries in .debug_aranges


>>>>> Joseph S Myers writes:

Joseph> Try moving these declarations outside #ifdef DWARF2_DEBUGGING_INFO (i.e. 
Joseph> moving them about 360 lines up the file) - it looks like gengtype not 
Joseph> handling declarations (marked GTY(()) because they are needed for PCH) 
Joseph> inside #ifdef.

	Committed as obvious.

Thanks, David


	* dwarf2out.c (text_section_used): Move declaration outside ifdef
	DWARF2_DEBUGGING_INFO.
	(cold_text_section_used): Same.
	(cold_text_section): Same.

Index: dwarf2out.c
===================================================================
--- dwarf2out.c	(revision 127634)
+++ dwarf2out.c	(working copy)
@@ -4052,6 +4052,15 @@
 /* Cached result of previous call to lookup_filename.  */
 static GTY(()) struct dwarf_file_data * file_table_last_lookup;
 
+/* Whether the default text and cold text sections have been used at
+   all.  */
+
+static GTY(()) bool text_section_used = false;
+static GTY(()) bool cold_text_section_used = false;
+
+/* The default cold text section.  */
+static GTY(()) section *cold_text_section;
+
 #ifdef DWARF2_DEBUGGING_INFO
 
 /* Offset from the "steady-state frame pointer" to the frame base,
@@ -4413,14 +4422,6 @@
 #define SEPARATE_LINE_CODE_LABEL	"LSM"
 #endif
 
-/* Whether the default text and cold text sections have been used at
-   all.  */
-
-static GTY(()) bool text_section_used = false;
-static GTY(()) bool cold_text_section_used = false;
-
-/* The default cold text section.  */
-static GTY(()) section *cold_text_section;
 
 /* We allow a language front-end to designate a function that is to be
    called to "demangle" any name before it is put into a DIE.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]