[Bug target/13018] New: -mminimal-toc breaks at -O0
amodra at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Nov 12 04:49:00 GMT 2003
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
More information about the Gcc-bugs
mailing list