re PR testsuite/28703 (FAIL: gcc.c-torture/execute/pr28651.c execution)
authorRichard Guenther <rguenther@suse.de>
Mon, 14 Aug 2006 15:05:37 +0000 (15:05 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 14 Aug 2006 15:05:37 +0000 (15:05 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr28651.c

index 7481db0ec6d3a5e4bc8098a8de7ea3c900fc3c9b..19b3349b0bbc11eab8c342fb005dcbdf58da2629 100644 (file)
@@ -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
index 1262f9f625eb2405382c17079b2874004d308f8f..e7ccf8e26ccadbfcbb2cfd7e5b9892917dd9e2f7 100644 (file)
@@ -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();