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 middle-end/55555] New: [4.8 Regression] miscompilation at -O2


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

             Bug #: 55555
           Summary: [4.8 Regression] miscompilation at -O2
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Joost.VandeVondele@mat.ethz.ch


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

The attached testcase is miscompiled at -O2, but runs fine at -O1.

To reproduce

gfortran -O2 bug.f90 ; ./a.out
#3  0x400C7E in MAIN__ at bug.f90:97
Aborted

I believe this is a recent regression on trunk. Tested with

gcc version 4.8.0 20121201 (experimental) [trunk revision 194017] (GCC)


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