Message ID | cc0dbbe1-5cb8-045c-5c6e-2d25337341b4@redhat.com |
---|---|
State | New |
Headers | show |
Series | Re: trapv question | expand |
diff --git a/gcc/testsuite/gcc.dg/torture/ftrapv-2.c b/gcc/testsuite/gcc.dg/torture/ftrapv-2.c index 75e464fe557..4d746c9ce5c 100644 --- a/gcc/testsuite/gcc.dg/torture/ftrapv-2.c +++ b/gcc/testsuite/gcc.dg/torture/ftrapv-2.c @@ -12,7 +12,7 @@ /* Verify SImode operations properly trap. PR middle-end/68046 */ -int i = 0x7fffffff; +volatile int i = 0x7fffffff; int main(void) { @@ -20,7 +20,7 @@ int main(void) int status = 0; if (child == 0) { - volatile int x = i + 1 < i; + i = i + 1; exit (0); } else if (child == -1)