aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-09-27 14:34:25 +0000
committerRainer Orth <ro@gcc.gnu.org>2016-09-27 14:34:25 +0000
commit6c948ce2587e128b2828a28667bf06d208c5fa4c (patch)
treef3937d252fc527eca748a4bc7a50aefc3f84b0b1
parent5b2b17dba37bdd31ba532689478217fe2b072cab (diff)
downloadgcc-6c948ce2587e128b2828a28667bf06d208c5fa4c.zip
gcc-6c948ce2587e128b2828a28667bf06d208c5fa4c.tar.gz
gcc-6c948ce2587e128b2828a28667bf06d208c5fa4c.tar.bz2
Fix pch with Solaris as
2016-09-27 Richard Biener <rguenther@suse.de> * dwarf2out.c (dwarf2out_init): Move text_section_line_info, cur_line_info_table initialization ... (dwarf2out_assembly_start): ... here. From-SVN: r240545
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c16
2 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4bcf0ac..670e941 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2016-09-27 Richard Biener <rguenther@suse.de>
+
+ * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
+ cur_line_info_table initialization ...
+ (dwarf2out_assembly_start): ... here.
+
2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
* config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index ed74190..51cab42 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -25657,14 +25657,6 @@ dwarf2out_init (const char *filename ATTRIBUTE_UNUSED)
vec_alloc (macinfo_table, 64);
#endif
- /* Make sure the line number table for .text always exists. */
- text_section_line_info = new_line_info_table ();
- text_section_line_info->end_label = text_end_label;
-
-#ifdef DWARF2_LINENO_DEBUGGING_INFO
- cur_line_info_table = text_section_line_info;
-#endif
-
/* If front-ends already registered a main translation unit but we were not
ready to perform the association, do this now. */
if (main_translation_unit != NULL_TREE)
@@ -25688,6 +25680,14 @@ dwarf2out_assembly_start (void)
ASM_OUTPUT_LABEL (asm_out_file, text_section_label);
#endif
+ /* Make sure the line number table for .text always exists. */
+ text_section_line_info = new_line_info_table ();
+ text_section_line_info->end_label = text_end_label;
+
+#ifdef DWARF2_LINENO_DEBUGGING_INFO
+ cur_line_info_table = text_section_line_info;
+#endif
+
if (HAVE_GAS_CFI_SECTIONS_DIRECTIVE
&& dwarf2out_do_cfi_asm ()
&& (!(flag_unwind_tables || flag_exceptions)