This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/47935] New: PowerPC64 -mcmodel=medium invalid lwa offset
- From: "amodra at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 1 Mar 2011 07:08:43 +0000
- Subject: [Bug target/47935] New: PowerPC64 -mcmodel=medium invalid lwa offset
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47935
Summary: PowerPC64 -mcmodel=medium invalid lwa offset
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: amodra@gmail.com
/* Testcase extracted from perl cpu2006
-m64 -O2 -S results in
.L.foo:
addis 9,2,.LANCHOR0@toc@ha
lwa 0,.LANCHOR0+3@toc@l(9)
...
*/
static long PL_statusvalue;
void foo (void)
{
int exitstatus;
exitstatus = PL_statusvalue >> 8;
if (exitstatus & 255)
PL_statusvalue = exitstatus;
else
PL_statusvalue = 255;
}