Commit 495e77b3 by Kugan Vivekanandarajah Committed by Kugan Vivekanandarajah

re PR tree-optimization/52904 (-Wstrict-overflow false alarm with bounded loop)

gcc/testsuite
2014-08-18  Kugan Vivekanandarajah  <kuganv@linaro.org>

	PR tree-optimization/52904
	* gcc.dg/pr52904.c: New test.

From-SVN: r214084
parent 86cde5ec
2014-08-18 Kugan Vivekanandarajah <kuganv@linaro.org>
PR tree-optimization/52904
* gcc.dg/pr52904.c: New test.
2014-08-17 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/finalize_27.f90: New.
......
/* { dg-do compile } */
/* { dg-options "-Wstrict-overflow -O2" } */
extern int foo (int);
int
wait_reading_process_output (void)
{
int nfds = 0;
int channel;
for (channel = 0; channel < 1024; ++channel)
{
if (foo (channel))
nfds++;
}
if (nfds < 0) /* { dg-bogus "assuming signed overflow does not occur" } */
return 1;
return 0;
}
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