public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Simple code produces ICE in gcc-3.2.1
@ 2002-10-24  5:18 Steve Kargl
  2002-10-24  8:09 ` Andrew Pinski
  0 siblings, 1 reply; 11+ messages in thread
From: Steve Kargl @ 2002-10-24  5:18 UTC (permalink / raw)
  To: gcc

The code fragment below causes an ICE if
k = 1.  No ICE occurs if k = 0 or the 
optimization level is -O0 or -O1.

troutmask:kargl[205] gcc -O2 -c c.c
c.c: In function `ice':
c.c:11: unrecognizable insn:
(insn 179 170 188 (set (reg:SI 85)
        (ashift:SI (reg/v:SI 62)
            (const_int 1 [0x1]))) -1 (nil)
    (nil))
c.c:11: Internal compiler error in extract_insn, at recog.c:2150
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


kargl[203] gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.2.1 [FreeBSD] 20021009 (prerelease)

-- 
Steve

void ice(int m, int n, double *f) {

	int i, j, k;

    /* k = 0;  No ICE */
    k = 1;  /* ICE */

    for (j = 0; j < n; j++) {
        for (i = k; i < m; i++) {
            f[i] = (double) (i * j);
            f[i + j] = (double) ((i + 1) * j);
        }
    }
}

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

end of thread, other threads:[~2002-10-25 13:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-24  5:18 Simple code produces ICE in gcc-3.2.1 Steve Kargl
2002-10-24  8:09 ` Andrew Pinski
2002-10-24  8:32   ` Steve Kargl
2002-10-24  8:34     ` Andreas Jaeger
2002-10-24  8:39       ` Steve Kargl
2002-10-25  6:31         ` Richard Henderson
2002-10-25  7:27           ` Steve Kargl
2002-10-25 10:34             ` Eric Botcazou
2002-10-25 12:05               ` Steve Kargl
2002-10-25  8:46           ` Phil Edwards
2002-10-25  9:13             ` Ben Elliston

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