Commit 04ec7059 by Rainer Orth Committed by Rainer Orth

Fix dwarf2out.c non-HAVE_AS_LEB128 bootstrap failure

	* dwarf2out.c (output_rnglists): Wrap basebuf, len in
	HAVE_AS_LEB128.

From-SVN: r241758
parent 307dde6f
2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* dwarf2out.c (output_rnglists): Wrap basebuf, len in
HAVE_AS_LEB128.
2016-11-01 Jakub Jelinek <jakub@redhat.com> 2016-11-01 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
...@@ -11052,7 +11052,9 @@ output_rnglists (void) ...@@ -11052,7 +11052,9 @@ output_rnglists (void)
dw_ranges *r; dw_ranges *r;
char l1[MAX_ARTIFICIAL_LABEL_BYTES]; char l1[MAX_ARTIFICIAL_LABEL_BYTES];
char l2[MAX_ARTIFICIAL_LABEL_BYTES]; char l2[MAX_ARTIFICIAL_LABEL_BYTES];
#ifdef HAVE_AS_LEB128
char basebuf[MAX_ARTIFICIAL_LABEL_BYTES]; char basebuf[MAX_ARTIFICIAL_LABEL_BYTES];
#endif
switch_to_section (debug_ranges_section); switch_to_section (debug_ranges_section);
ASM_OUTPUT_LABEL (asm_out_file, ranges_section_label); ASM_OUTPUT_LABEL (asm_out_file, ranges_section_label);
...@@ -11085,9 +11087,9 @@ output_rnglists (void) ...@@ -11085,9 +11087,9 @@ output_rnglists (void)
ranges_base_label, NULL); ranges_base_label, NULL);
} }
unsigned int len = vec_safe_length (ranges_table);
const char *lab = ""; const char *lab = "";
#ifdef HAVE_AS_LEB128 #ifdef HAVE_AS_LEB128
unsigned int len = vec_safe_length (ranges_table);
const char *base = NULL; const char *base = NULL;
#endif #endif
FOR_EACH_VEC_SAFE_ELT (ranges_table, i, r) FOR_EACH_VEC_SAFE_ELT (ranges_table, i, r)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment