http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46467
Summary: [4.6 Regression] gcc.dg/torture/pta-structcopy-1.c
FAILs with -fipa-pta without inlining
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 22385
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22385
modified gcc.dg/torture/pta-structcopy-1.c
Output:
$ gcc -O2 -fno-tree-sra -fipa-pta -fno-inline-functions-called-once
-fno-inline-small-functions pta-structcopy-1.i
$ ./a.out
Aborted
Attached testcase only adds __attribute__((noinline)) to foo() with the same
effect:
$ gcc -O2 -fno-tree-sra -fipa-pta pta-structcopy-1b.c
$ ./a.out
Aborted
Tested revisions:
r166703 - fail
r159696 - fail
r158095 - OK
4.5 r166509