From c49226a1d2e591d11220dfbf62d8cfcc75d1b43b Mon Sep 17 00:00:00 2001 From: dje Date: Mon, 20 Aug 2007 13:52:16 +0000 Subject: [PATCH] * dwarf2out.c (text_section_used): Move declaration outside ifdef DWARF2_DEBUGGING_INFO. (cold_text_section_used): Same. (cold_text_section): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127648 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/dwarf2out.c | 17 +++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 35822ba..50ba76f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2007-08-20 David Edelsohn + + * dwarf2out.c (text_section_used): Move declaration outside ifdef + DWARF2_DEBUGGING_INFO. + (cold_text_section_used): Same. + (cold_text_section): Same. + 2007-08-20 Richard Guenther * c-typeck.c (convert_for_assignment): Use the type of diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 0170737..ec6e121 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -4052,6 +4052,15 @@ static GTY(()) int label_num; /* 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 @@ static char ranges_section_label[2 * MAX_ARTIFICIAL_LABEL_BYTES]; #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. */ -- 2.7.4