aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2018-01-04 21:47:35 +0000
committerRainer Orth <ro@gcc.gnu.org>2018-01-04 21:47:35 +0000
commit91a00d11a32d7590285395534a2315ad65a6402f (patch)
treeba65ea590758de1275dfd8d47681e58f4584f6eb /gcc
parent85e0b2c4515719b27c7e755faa01b80a24926489 (diff)
downloadgcc-91a00d11a32d7590285395534a2315ad65a6402f.zip
gcc-91a00d11a32d7590285395534a2315ad65a6402f.tar.gz
gcc-91a00d11a32d7590285395534a2315ad65a6402f.tar.bz2
Avoid Solaris/SPARC comparison failures with Solaris as (PR bootstrap/81926)
PR bootstrap/81926 * cgraphunit.c (symbol_table::compile): Switch to text_section before calling assembly_start debug hook. * run-rtl-passes.c (run_rtl_passes): Likewise. Include output.h. From-SVN: r256267
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/cgraphunit.c1
-rw-r--r--gcc/run-rtl-passes.c2
3 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b981ff4..0692c62 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2018-01-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR bootstrap/81926
+ * cgraphunit.c (symbol_table::compile): Switch to text_section
+ before calling assembly_start debug hook.
+ * run-rtl-passes.c (run_rtl_passes): Likewise.
+ Include output.h.
+
2018-01-04 Richard Sandiford <richard.sandiford@linaro.org>
* tree-vrp.c (extract_range_from_binary_expr_1): Check
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 44b931e..e418ec0 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2579,6 +2579,7 @@ symbol_table::compile (void)
timevar_pop (TV_CGRAPHOPT);
/* Output everything. */
+ switch_to_section (text_section);
(*debug_hooks->assembly_start) ();
if (!quiet_flag)
fprintf (stderr, "Assembling functions:\n");
diff --git a/gcc/run-rtl-passes.c b/gcc/run-rtl-passes.c
index 27f510e..7e947e9 100644
--- a/gcc/run-rtl-passes.c
+++ b/gcc/run-rtl-passes.c
@@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see
#include "bitmap.h"
#include "df.h"
#include "regs.h"
+#include "output.h"
#include "debug.h" /* for debug_hooks. */
#include "insn-attr-common.h" /* for INSN_SCHEDULING. */
#include "insn-attr.h" /* for init_sched_attrs. */
@@ -45,6 +46,7 @@ run_rtl_passes (char *initial_pass_name)
max_regno = max_reg_num ();
/* cgraphunit.c normally handles this. */
+ switch_to_section (text_section);
(*debug_hooks->assembly_start) ();
/* Pass "expand" normally sets this up. */