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]

[PATCH] [applied] fix bootstrap on targets without dwarf2 support


This patch fixes bootstrap on targets without dwarf2 support by moving the variable
loclabel_num into an ifdef.


Thanks,
Andrew Pinski


2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>


        * dwarf2out.c (loclabel_num): Move into #ifdef
        DWARF2_DEBUGGING_INFO.


Index: dwarf2out.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v retrieving revision 1.490 diff -u -p -r1.490 dwarf2out.c --- dwarf2out.c 6 Feb 2004 20:17:00 -0000 1.490 +++ dwarf2out.c 7 Feb 2004 02:35:31 -0000 @@ -3501,8 +3501,6 @@ struct var_loc_list_def GTY (()) }; typedef struct var_loc_list_def var_loc_list;

-/* Unique label counter.  */
-static unsigned int loclabel_num = 0;

/* Table of decl location linked lists. */
static GTY ((param_is (var_loc_list))) htab_t decl_loc_table;
@@ -3595,6 +3593,9 @@ static GTY(()) unsigned have_location_li
#ifdef DWARF2_DEBUGGING_INFO
/* Record whether the function being analyzed contains inlined functions. */
static int current_function_has_inlines;
+
+/* Unique label counter. */
+static unsigned int loclabel_num = 0;
#endif
#if 0 && defined (MIPS_DEBUGGING_INFO)
static int comp_unit_has_inlines;



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