This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13018] New: -mminimal-toc breaks at -O0
- From: "amodra at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2003 04:49:02 -0000
- Subject: [Bug target/13018] New: -mminimal-toc breaks at -O0
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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