http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46185
Summary: [4.6 Regression] gcc.dg/graphite/interchange-4.c FAILs
with -fno-ipa-cp
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: [email protected]
ReportedBy: [email protected]
Output (with #define DEBUG 1):
$ gcc -O2 -floop-interchange -ffast-math interchange-4.c && ./a.out
res = 3565793
$ gcc -O2 -floop-interchange -ffast-math interchange-4.c -fno-ipa-cp && ./a.out
res = 1343
Aborted
$ gcc -O1 -floop-interchange -ffast-math interchange-4.c && ./a.out
res = 1343
Aborted
The same effect can be achieved by adding attribute noclone to foo().
Tested revisions:
r165915 - fail
r163636 - fail
r161659 - OK