This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/55005] [4.8 Regression] gcc.c-torture/execute/loop-3.c FAILs with -fPIC


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]