This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Committed] S/390: Fix pr48335 testsuite fails
- From: Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 8 Apr 2013 09:52:52 +0200
- Subject: [Committed] S/390: Fix pr48335 testsuite fails
Hi,
I've committed the attached patch fixing the following testsuite fails
on s390 (-march=z196):
< FAIL: gcc.dg/pr48335-2.c (internal compiler error)
< FAIL: gcc.dg/pr48335-2.c (test for excess errors)
< FAIL: gcc.dg/pr48335-3.c (internal compiler error)
< FAIL: gcc.dg/pr48335-3.c (test for excess errors)
I've also committed the fix to 4.8 branch since it is a regression
from 4.7.
Bye,
-Andreas-
2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_expand_insv): Only accept insertions
within mode size.
---
gcc/config/s390/s390.c | 3 +++
1 file changed, 3 insertions(+)
Index: gcc/config/s390/s390.c
===================================================================
*** gcc/config/s390/s390.c.orig
--- gcc/config/s390/s390.c
*************** s390_expand_insv (rtx dest, rtx op1, rtx
*** 4648,4653 ****
--- 4648,4656 ----
int smode_bsize, mode_bsize;
rtx op, clobber;
+ if (bitsize + bitpos > GET_MODE_SIZE (mode))
+ return false;
+
/* Generate INSERT IMMEDIATE (IILL et al). */
/* (set (ze (reg)) (const_int)). */
if (TARGET_ZARCH