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

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Sun Oct 21 05:25:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55005

             Bug #: 55005
           Summary: [4.8 Regression] gcc.c-torture/execute/loop-3.c FAILs
                    with -fPIC
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 28498
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28498
reduced testcase

There are various compiler flags that cause the FAIL.

Output:
$ gcc -O3 -fPIC testcase.c && ./a.out 
Aborted
$ gcc -O2 -funroll-loops -fPIC testcase.c && ./a.out 
Aborted
$ gcc -O2 -fpeel-loops -fPIC testcase.c && ./a.out 
Aborted
$ gcc -O2 -flto -fPIC testcase.c && ./a.out 
Aborted

Tested revisions:
r192641 - fail
r191586 - OK
4.7 r191640 - OK



More information about the Gcc-bugs mailing list