public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36245]  New: internal compiler error: in build2_stat, at tree.c:3116
@ 2008-05-15 12:15 y at momonga-linux dot org
  2008-05-15 12:30 ` [Bug c/36245] " rguenth at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: y at momonga-linux dot org @ 2008-05-15 12:15 UTC (permalink / raw)
  To: gcc-bugs

The following code produces an ICE with -O1 or -O2

$ cat foo.c
extern char buf1[10];
extern char buf2[10];
extern void b(int i, int j, int w);

void a() {
    int i,j;
    char *p;
    int w;

    p = buf1;
    for(j = 0;j < 10; j++) {
        for(i = 0;i < 10; i++) {
            w = *p;
            if(w != 1) {
                w = buf2[p - buf1];
                b(i*2+1, j, w);
            }
            p++;
        }
    }
}

$ gcc -O1 foo.c
foo.c: In function 'a':
foo.c:5: internal compiler error: in build2_stat, at tree.c:3116
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.


-- 
           Summary: internal compiler error: in build2_stat, at tree.c:3116
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: y at momonga-linux dot org


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


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

end of thread, other threads:[~2008-06-11 15:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-15 12:15 [Bug c/36245] New: internal compiler error: in build2_stat, at tree.c:3116 y at momonga-linux dot org
2008-05-15 12:30 ` [Bug c/36245] " rguenth at gcc dot gnu dot org
2008-05-15 12:32 ` [Bug tree-optimization/36245] [4.3 Regression] " rguenth at gcc dot gnu dot org
2008-05-15 14:09 ` rguenth at gcc dot gnu dot org
2008-05-15 14:10 ` rguenth at gcc dot gnu dot org
2008-05-15 14:12 ` rguenth at gcc dot gnu dot org
2008-05-16  0:44 ` hjl dot tools at gmail dot com
2008-05-16  8:15 ` rguenther at suse dot de
2008-05-16 15:26 ` [Bug tree-optimization/36245] [4.4 " rguenth at gcc dot gnu dot org
2008-05-16 15:27 ` rguenth at gcc dot gnu dot org
2008-05-16 19:40 ` rguenth at gcc dot gnu dot org
2008-05-25 18:09 ` ghazi at gcc dot gnu dot org
2008-05-27 13:11 ` rguenth at gcc dot gnu dot org
2008-05-27 13:11 ` rguenth at gcc dot gnu dot org
2008-05-30 16:13 ` dnovillo at gcc dot gnu dot org
2008-06-11 15:40 ` dnovillo at gcc dot gnu dot 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).