projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bb27b8
)
Re: trapv question
author
Andrew MacLeod
<amacleod@redhat.com>
Wed, 20 Jan 2021 21:27:34 +0000
(16:27 -0500)
committer
Andrew MacLeod
<amacleod@redhat.com>
Wed, 20 Jan 2021 21:30:48 +0000
(16:30 -0500)
Adjust testcase to so the ADD that is expected to overflow cannot
be optimized.
gcc/testsuite
* gcc.dg/torture/ftrapv-2.c: Make overflow instruction unremovable.
gcc/testsuite/gcc.dg/torture/ftrapv-2.c
patch
|
blob
|
history
diff --git
a/gcc/testsuite/gcc.dg/torture/ftrapv-2.c
b/gcc/testsuite/gcc.dg/torture/ftrapv-2.c
index 75e464fe557a134e047cf6335ee43e01734eb024..4d746c9ce5c222dce410dbfc8c49ce1c7ce61d51 100644
(file)
--- 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)