public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/55433] New: [4.8 Regression] ICE on excessive reloads
@ 2012-11-21 22:41 PHHargrove at lbl dot gov
  2012-11-21 22:48 ` [Bug target/55433] " PHHargrove at lbl dot gov
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: PHHargrove at lbl dot gov @ 2012-11-21 22:41 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55433
           Summary: [4.8 Regression] ICE on excessive reloads
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: PHHargrove@lbl.gov
                CC: gary@intrepid.com, nenad@intrepid.com


The 9-line stand-alone test case at the end of this report fails as show below
on MacOS (at least versions 10.6 and 10.8) on x86-64 machines when targeting
the ILP32 ABI.  It notably does NOT fail on Linux/x86-64.

This was seen in SVN r193679 (on MacOSX 10.6) and r193709 (on MacOSX 10.8).

--cut--
$ gcc -m32 -O1 -fpreprocessed -c testcase.c
testcase.c: In function 'test':
testcase.c:10:1: internal compiler error: Max. number of generated reload insns
per insn is achieved (90)

 }
 ^

testcase.c:9:1: internal compiler error: Abort trap
gcc: internal compiler error: Abort trap (program cc1)
Abort trap
--cut--

Note that while the error message is the same as bug 55247, I have confirmed
that the test case attached to that bug report has NOT regressed.  Therefore, I
believe this is a different bug (though possibly related).

Some additional data:
+  -m32 is required (no bug seen w/ -m64)
+  Linux host is fine (w/ -m32 and -m64)
+  -O1 is sufficient, but -O2 and -O3 fail in the same manner
+  removing "unsigned" from the typedef eliminates the problem
+  adding -mno-sse to the command line eliminates the problem


The testcase:

typedef unsigned long long tick_t; // NOTE: no bug if "unsigned" is removed
extern int foo(void);
extern tick_t tick(void);
double test(void) {
  struct { tick_t ticks; } st;
  st.ticks = tick();
  foo(); // NOTE: no bug if this call is removed
  return (double)st.ticks;
}


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

end of thread, other threads:[~2013-01-20 19:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-21 22:41 [Bug target/55433] New: [4.8 Regression] ICE on excessive reloads PHHargrove at lbl dot gov
2012-11-21 22:48 ` [Bug target/55433] " PHHargrove at lbl dot gov
2012-11-25 15:55 ` rguenth at gcc dot gnu.org
2012-12-07 10:20 ` [Bug target/55433] [4.8 Regression][LRA] " rguenth at gcc dot gnu.org
2013-01-15  9:16 ` PHHargrove at lbl dot gov
2013-01-16 18:44 ` vmakarov at gcc dot gnu.org
2013-01-18 18:15 ` vmakarov at gcc dot gnu.org
2013-01-18 20:31 ` jakub at gcc dot gnu.org
2013-01-20 19:10 ` vmakarov at gcc dot gnu.org

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).