public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/55270] New: ICE in get_loop_body, at cfgloop.c:823
@ 2012-11-11 10:25 antoine.balestrat at gmail dot com
  2012-11-13 10:20 ` [Bug rtl-optimization/55270] " mpolacek at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: antoine.balestrat at gmail dot com @ 2012-11-11 10:25 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55270
           Summary: ICE in get_loop_body, at cfgloop.c:823
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: antoine.balestrat@gmail.com


Hello ! The following testcase makes GCC 4.8.0 20121110 crash at -O3 :

$ cat loopbody.c
unsigned a, b, c;

void f(void)
{
    for(; a; a++)
    {
        // In 32 bits mode, you'll have to change p1 to "long long int" to
trigger the bug
        long *p1 = &b;

        if(*p1)
            return;

        if(b && (*p1 = b) || c && ++*p1)
        {
            unsigned *p2 = &b;

            for(*p2 = 0; *p2 < 1;)
                for(; b; b++);
        }
    }
}


$ xgcc -w -O3 loopbody.c
loopbody.c: In function ‘f’:
loopbody.c:3:6: internal compiler error: in get_loop_body, at cfgloop.c:823
 void f(void)
      ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

end of thread, other threads:[~2013-01-29 11:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-11 10:25 [Bug rtl-optimization/55270] New: ICE in get_loop_body, at cfgloop.c:823 antoine.balestrat at gmail dot com
2012-11-13 10:20 ` [Bug rtl-optimization/55270] " mpolacek at gcc dot gnu.org
2013-01-26 14:11 ` antoine.balestrat at gmail dot com
2013-01-26 14:28 ` mpolacek at gcc dot gnu.org
2013-01-28 13:34 ` [Bug rtl-optimization/55270] [4.8 Regression] " mpolacek at gcc dot gnu.org
2013-01-28 13:35 ` mpolacek at gcc dot gnu.org
2013-01-28 13:39 ` rguenther at suse dot de
2013-01-28 13:43 ` mpolacek at gcc dot gnu.org
2013-01-28 13:48 ` rguenth at gcc dot gnu.org
2013-01-28 14:03 ` rguenth at gcc dot gnu.org
2013-01-28 16:43 ` mpolacek at gcc dot gnu.org
2013-01-29  9:01 ` rguenther at suse dot de
2013-01-29  9:39 ` mpolacek at gcc dot gnu.org
2013-01-29 10:40 ` rguenth at gcc dot gnu.org
2013-01-29 11:39 ` rguenth 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).