PATCH COMMITTED: Fix testsuite failure from pointer overflow warning

Ian Lance Taylor iant@google.com
Sat Apr 19 12:04:00 GMT 2008


I managed to miss a testsuite failure from the pointer overflow
warning.  HP pointed it out in PR 35977.  I committed this patch to
fix it.  The test depends on an optimization which the compiler now
assumes can not be done without strict pointer overflow, and thus now
requires -O2 (or -fstrict-overflow) rather than -O1.

(The test does not actually require strict pointer overflow, and it
would be possible to continue doing the optimization at -O1, but I
think it is OK to move it to -O2.)

Ian


2008-04-18  Ian Lance Taylor  <iant@google.com>

	PR tree-optimization/35977
	* gcc.dg/tree-ssa/forwprop-3.c: Use -O2 rather than -O.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 372 bytes
Desc: Fix testsuite failure
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080419/5b9f66d3/attachment.bin>


More information about the Gcc-patches mailing list