This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite]: Fix gcc.dg/ipa/ipcp-3.c
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Martin Jambor <mjambor at suse dot cz>
- Date: Mon, 05 Sep 2011 14:08:18 +0200
- Subject: [testsuite]: Fix gcc.dg/ipa/ipcp-3.c
This test case contains expression 1 << 18 which leads to FAIL for targets with
sizeof(int) < 4.
The mask seems not to be relevant for the test and can be set to, e.g. 14.
Ok?
testsuite/
* gcc.dg/ipa/ipcp-3.c (mark_cell): Use mask 1 << 14 instead of 1 << 18.
Index: gcc.dg/ipa/ipcp-3.c
===================================================================
--- gcc.dg/ipa/ipcp-3.c (revision 178527)
+++ gcc.dg/ipa/ipcp-3.c (working copy)
@@ -34,7 +34,7 @@ static void
mark_cell(int * interp, Pcc_cell *c)
{
if (c && c->type == 4 && c->p
- && !(c->p->flags & (1<<18)))
+ && !(c->p->flags & (1<<14)))
never_ever(interp, c->p);
}