http://sourceware.org/bugzilla/show_bug.cgi?id=13235

             Bug #: 13235
           Summary: gcc's -freorder-blocks-and_partition results in ld
                    misoptimizing -mcmodel=medium code
           Product: binutils
           Version: 2.23 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassig...@sourceware.org
        ReportedBy: amo...@gmail.com
    Classification: Unclassified


Created attachment 5952
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5952
testcase taken from gcc/testsuite/gcc.dg/tree-prof/bb-reorg.c

-freorder-blocks-and-partition can result in splitting a low part of a
medium/large toc address calculation from the high part, placing the two insns
in different sections.  When more than one low part calculation exists, one of
which is in the same section as the high part, and the address calculation is
such that the high part is zero, ld will optimize the high part away but not
update the low part insns that are in a different section to the high part.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to