diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2003-01-21 14:54:21 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2003-01-21 14:54:21 +0000 |
commit | 044b4de3d85f870850d185c96de1746202710251 (patch) | |
tree | 0e679a850248c2589d48211575201caa1d2cf465 | |
parent | cfedf91bdca924f7ec8a558333d179351a794c2c (diff) | |
download | gcc-044b4de3d85f870850d185c96de1746202710251.zip gcc-044b4de3d85f870850d185c96de1746202710251.tar.gz gcc-044b4de3d85f870850d185c96de1746202710251.tar.bz2 |
dwarf2out.c (fde_table_in_use): Mark GTY.
* dwarf2out.c (fde_table_in_use): Mark GTY.
(dwarf2out_cfi_label_num): New variable, marked GTY.
(dwarf2out_cfi_label): Use it instead of static label_num.
* emit-rtl.c (label_num): Mark GTY.
From-SVN: r61547
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 8 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 2 |
3 files changed, 11 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 596a5ba..42e4867 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2003-01-21 Ulrich Weigand <uweigand@de.ibm.com> + + * dwarf2out.c (fde_table_in_use): Mark GTY. + (dwarf2out_cfi_label_num): New variable, marked GTY. + (dwarf2out_cfi_label): Use it instead of static label_num. + * emit-rtl.c (label_num): Mark GTY. + 2003-01-21 Kazu Hirata <kazu@cs.umass.edu> * config/h8300/h8300.c (output_plussi): Support H8/300. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index b2a0438..12e6fde 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -279,10 +279,8 @@ static GTY((length ("fde_table_allocated"))) dw_fde_ref fde_table; /* Number of elements currently allocated for fde_table. */ static unsigned fde_table_allocated; -#if defined (DWARF2_DEBUGGING_INFO) || defined (DWARF2_UNWIND_INFO) /* Number of elements in fde_table currently in use. */ -static unsigned fde_table_in_use; -#endif +static GTY(()) unsigned fde_table_in_use; /* Size (in elements) of increments by which we may expand the fde_table. */ @@ -310,6 +308,7 @@ struct indirect_string_node GTY(()) static GTY ((param_is (struct indirect_string_node))) htab_t debug_str_hash; static GTY(()) int dw2_string_counter; +static GTY(()) unsigned long dwarf2out_cfi_label_num; #if defined (DWARF2_DEBUGGING_INFO) || defined (DWARF2_UNWIND_INFO) @@ -561,9 +560,8 @@ char * dwarf2out_cfi_label () { static char label[20]; - static unsigned long label_num = 0; - ASM_GENERATE_INTERNAL_LABEL (label, "LCFI", label_num++); + ASM_GENERATE_INTERNAL_LABEL (label, "LCFI", dwarf2out_cfi_label_num++); ASM_OUTPUT_LABEL (asm_out_file, label); return label; } diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index bacbf03..5dd599a 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -69,7 +69,7 @@ enum machine_mode ptr_mode; /* Mode whose width is POINTER_SIZE. */ /* This is *not* reset after each function. It gives each CODE_LABEL in the entire compilation a unique label number. */ -static int label_num = 1; +static GTY(()) int label_num = 1; /* Highest label number in current function. Zero means use the value of label_num instead. |