This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Committed] S/390: Java bootstrap fix with --with-arch=z10
- From: "Andreas Krebbel" <krebbel at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 14 Feb 2010 09:33:58 +0100
- Subject: [Committed] S/390: Java bootstrap fix with --with-arch=z10
Hi,
the last_scheduled_insn variable in the back-end needs to be reset
when a new scheduling block is about to begin.
This currently causes a java bootstrap failure when bootstrapping with
--with-arch=z10.
The testcase was not appropriate for the testsuite.
Patch tested on s390x - no regressions.
Committed to 4.4 and mainline.
Bye,
-Andreas-
2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_sched_init): New function.
(TARGET_SCHED_INIT): Target hook defined.
Index: gcc/gcc/config/s390/s390.c
===================================================================
--- gcc.orig/gcc/config/s390/s390.c 2010-02-12 18:00:59.000000000 +0100
+++ gcc/gcc/config/s390/s390.c 2010-02-12 18:02:01.000000000 +0100
@@ -10160,6 +10160,14 @@ s390_sched_variable_issue (FILE *file AT
return more;
}
+static void
+s390_sched_init (FILE *file ATTRIBUTE_UNUSED,
+ int verbose ATTRIBUTE_UNUSED,
+ int max_ready ATTRIBUTE_UNUSED)
+{
+ last_scheduled_insn = NULL_RTX;
+}
+
/* Initialize GCC target structure. */
#undef TARGET_ASM_ALIGNED_HI_OP
@@ -10220,6 +10228,8 @@ s390_sched_variable_issue (FILE *file AT
#define TARGET_SCHED_VARIABLE_ISSUE s390_sched_variable_issue
#undef TARGET_SCHED_REORDER
#define TARGET_SCHED_REORDER s390_sched_reorder
+#undef TARGET_SCHED_INIT
+#define TARGET_SCHED_INIT s390_sched_init
#undef TARGET_CANNOT_COPY_INSN_P
#define TARGET_CANNOT_COPY_INSN_P s390_cannot_copy_insn_p