public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/47935] New: PowerPC64 -mcmodel=medium invalid lwa offset
@ 2011-03-01  7:08 amodra at gmail dot com
  2011-03-01  7:09 ` [Bug target/47935] " amodra at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: amodra at gmail dot com @ 2011-03-01  7:08 UTC (permalink / raw)
  To: gcc-bugs

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;
}


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-02  4:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-01  7:08 [Bug target/47935] New: PowerPC64 -mcmodel=medium invalid lwa offset amodra at gmail dot com
2011-03-01  7:09 ` [Bug target/47935] " amodra at gmail dot com
2011-03-01  7:10 ` amodra at gmail dot com
2011-03-02  0:54 ` amodra at gcc dot gnu.org
2011-03-02  1:15 ` amodra at gcc dot gnu.org
2011-03-02  4:04 ` amodra at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).