Commit c5183e0f by Richard Guenther Committed by Richard Biener

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
parent be6415be
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> 2006-08-14 Richard Sandiford <richard@codesourcery.com>
PR rtl-optimization/28634 PR rtl-optimization/28634
extern void abort (void); extern void abort (void);
int int __attribute__((noinline))
foo (unsigned int u) foo (unsigned int u)
{ {
return (int)(u + 4) < (int)u; return (int)(u + 4) < (int)u;
...@@ -8,14 +8,7 @@ foo (unsigned int u) ...@@ -8,14 +8,7 @@ foo (unsigned int u)
int int
main (int argc, char *argv[]) main (int argc, char *argv[])
{ {
unsigned int u; unsigned int u = 0x7fffffff;
/* 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;
if (foo (u) == 0) if (foo (u) == 0)
abort(); abort();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment