This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/55005] [4.8 Regression] gcc.c-torture/execute/loop-3.c FAILs with -fPIC
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 21 Oct 2012 12:14:59 +0000
- Subject: [Bug tree-optimization/55005] [4.8 Regression] gcc.c-torture/execute/loop-3.c FAILs with -fPIC
- Auto-submitted: auto-generated
- References: <bug-55005-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55005
--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> 2012-10-21 12:14:59 UTC ---
This isn't the only testcase that started failing recently.
One interesting flag combination:
$ gcc -O2 -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce testcase.c && ./a.out
Segmentation fault
In this case, the body of main() isn't generated at all, so the code runs away
immediatelly after jumping to main().
main:
.LFB2:
.cfi_startproc
.cfi_endproc
.LFE2:
.size main, .-main