aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2016-11-01 22:20:58 +0000
committerRainer Orth <ro@gcc.gnu.org>2016-11-01 22:20:58 +0000
commit04ec7059b5b24b46919de70803e57104ca091a09 (patch)
tree7eb6fec0bbbc740b36e4d55324c3845501ab1661 /gcc/dwarf2out.c
parent307dde6fcc0fdf813087212705f84370b1a2305b (diff)
downloadgcc-04ec7059b5b24b46919de70803e57104ca091a09.zip
gcc-04ec7059b5b24b46919de70803e57104ca091a09.tar.gz
gcc-04ec7059b5b24b46919de70803e57104ca091a09.tar.bz2
Fix dwarf2out.c non-HAVE_AS_LEB128 bootstrap failure
* dwarf2out.c (output_rnglists): Wrap basebuf, len in HAVE_AS_LEB128. From-SVN: r241758
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index abadc47..5ff6f97 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -11052,7 +11052,9 @@ output_rnglists (void)
dw_ranges *r;
char l1[MAX_ARTIFICIAL_LABEL_BYTES];
char l2[MAX_ARTIFICIAL_LABEL_BYTES];
+#ifdef HAVE_AS_LEB128
char basebuf[MAX_ARTIFICIAL_LABEL_BYTES];
+#endif
switch_to_section (debug_ranges_section);
ASM_OUTPUT_LABEL (asm_out_file, ranges_section_label);
@@ -11085,9 +11087,9 @@ output_rnglists (void)
ranges_base_label, NULL);
}
- unsigned int len = vec_safe_length (ranges_table);
const char *lab = "";
#ifdef HAVE_AS_LEB128
+ unsigned int len = vec_safe_length (ranges_table);
const char *base = NULL;
#endif
FOR_EACH_VEC_SAFE_ELT (ranges_table, i, r)