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 target/13018] New: -mminimal-toc breaks at -O0


It's possible for the rs6000 prologue code to emit references to the
second-level toc using .LCTOC0@toc(2) but never have the label .LCTOC0 defined.
 This testcase, compiled with -S -mminimal-toc -O0 demonstrates the problem.

long foo (long x)
{
  return 0;
  return x + 0x87654321;
}

Mainline happens to avoid the problem by trimming at the tree level with
expand_unreachable_stmt.  All 3.3.x and 3.2.x compilers I tested have this problem.

-- 
           Summary: -mminimal-toc breaks at -O0
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amodra at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: any
  GCC host triplet: any
GCC target triplet: powerpc64-unknown-linux


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


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