diff options
author | Richard Guenther <rguenther@suse.de> | 2006-08-14 15:05:37 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2006-08-14 15:05:37 +0000 |
commit | c5183e0facfcb63d5200e5aaa894cf95f500d201 (patch) | |
tree | 20968c4e7e215aa730f7e9df4ecadcb432fb6e56 | |
parent | be6415beaefe63fbcf0f8fad53cf9662fb6640ba (diff) | |
download | gcc-c5183e0facfcb63d5200e5aaa894cf95f500d201.zip gcc-c5183e0facfcb63d5200e5aaa894cf95f500d201.tar.gz gcc-c5183e0facfcb63d5200e5aaa894cf95f500d201.tar.bz2 |
re PR testsuite/28703 (FAIL: gcc.c-torture/execute/pr28651.c execution)
2006-08-14 Richard Guenther <rguenther@suse.de>
PR testsuite/28703
* gcc.c-torture/execute/pr28651.c: Do not use argc
to avoid optimization, instead forbid inlining.
From-SVN: r116129
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr28651.c | 11 |
2 files changed, 8 insertions, 9 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7481db0..19b3349 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-08-14 Richard Guenther <rguenther@suse.de> + + PR testsuite/28703 + * gcc.c-torture/execute/pr28651.c: Do not use argc + to avoid optimization, instead forbid inlining. + 2006-08-14 Richard Sandiford <richard@codesourcery.com> PR rtl-optimization/28634 diff --git a/gcc/testsuite/gcc.c-torture/execute/pr28651.c b/gcc/testsuite/gcc.c-torture/execute/pr28651.c index 1262f9f..e7ccf8e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr28651.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr28651.c @@ -1,5 +1,5 @@ extern void abort (void); -int +int __attribute__((noinline)) foo (unsigned int u) { return (int)(u + 4) < (int)u; @@ -8,14 +8,7 @@ foo (unsigned int u) int main (int argc, char *argv[]) { - unsigned int u; - - /* Run with no arguments so u will be MAX_INT and the optimizers - won't know its value. */ - if (argc > 1) - u = 1; - else - u = 0x7fffffff; + unsigned int u = 0x7fffffff; if (foo (u) == 0) abort(); |