public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Re: 'internal error--unrecognizable insn' on Alpha linux
  1999-06-30 23:07 'internal error--unrecognizable insn' on Alpha linux Paul Slootman
@ 1999-06-25  5:18 ` Jeffrey A Law
  1999-06-30 23:07 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey A Law @ 1999-06-25  5:18 UTC (permalink / raw)
  To: Paul Slootman; +Cc: egcs-bugs

  In message < 19990615135837.A32543@wau.mis.ah.nl >you write:
  > egcs version: 1.1.2
  > system type: Alpha (linux)
  > command line: gcc -c -O2 bla.c
  > 
  > I get this:
  > 
  > egcs-bug.c: In function `main':
  > egcs-bug.c:42: internal error--unrecognizable insn:
  > (insn 162 154 69 (set (reg:SI 87)
  >         (reg/v:DI 71)) -1 (insn_list 154 (nil))
  >     (nil))
  > ../../gcc/toplev.c:1385: Internal compiler error in function fatal_insn
  > 
  > 
  > This happens with -O2 and above. -O is ok.
  > This is the (heavily preprocessed and minimized) source that triggers it.
  > It was some huge source file but this example gives the exact same error:
[ ... ]
Thanks.  I just tried this with the current gcc-2.95 prerelease sources and
it seems to be fine now.
jeff




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

* 'internal error--unrecognizable insn' on Alpha linux
@ 1999-06-30 23:07 Paul Slootman
  1999-06-25  5:18 ` Jeffrey A Law
  1999-06-30 23:07 ` Richard Henderson
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Slootman @ 1999-06-30 23:07 UTC (permalink / raw)
  To: egcs-bugs

egcs version: 1.1.2
system type: Alpha (linux)
command line: gcc -c -O2 bla.c

I get this:

egcs-bug.c: In function `main':
egcs-bug.c:42: internal error--unrecognizable insn:
(insn 162 154 69 (set (reg:SI 87)
        (reg/v:DI 71)) -1 (insn_list 154 (nil))
    (nil))
../../gcc/toplev.c:1385: Internal compiler error in function fatal_insn


This happens with -O2 and above. -O is ok.
This is the (heavily preprocessed and minimized) source that triggers it.
It was some huge source file but this example gives the exact same error:

--snip-snip-----------------------------------------------------------
/*
egcs-bug.c: In function `main':
egcs-bug.c:42: internal error--unrecognizable insn:
(insn 162 154 69 (set (reg:SI 86)
        (reg/v:DI 71)) -1 (insn_list 154 (nil))
    (nil))
../../gcc/toplev.c:1378: Internal compiler error in function fatal_insn
*/

typedef enum {
        JCS_UNKNOWN,
        JCS_GRAYSCALE,
        JCS_RGB
} J_COLOR_SPACE;
struct jcs {
  J_COLOR_SPACE color;
};

int
main(int argc, char *argv[])
{
    int gray = 0, type, y;
    struct jcs cinfo;

    for (;;) {
        if (!y)
            break;
        switch (y) {
        case '1':
            gray = 1 ;
            break;
        }
    }
    type = gray ? 1  : 2 ;
    if (gray)
        x();
    x2(&cinfo);
    cinfo.color = gray ? JCS_GRAYSCALE : JCS_RGB;
    for (y = 0; y < 3; y++)
        if (x3(type)) {
        }
}
--snip-snip-----------------------------------------------------------

Thanks,
Paul Slootman
-- 
home: paul@wurtel.demon.nl | work: paul@murphy.nl | debian: paul@debian.org
http://www.wurtel.demon.nl | Murphy Software,   Enschede,   the Netherlands


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

* Re: 'internal error--unrecognizable insn' on Alpha linux
  1999-06-30 23:07 'internal error--unrecognizable insn' on Alpha linux Paul Slootman
  1999-06-25  5:18 ` Jeffrey A Law
@ 1999-06-30 23:07 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 1999-06-30 23:07 UTC (permalink / raw)
  To: Paul Slootman; +Cc: egcs-bugs

On Tue, Jun 15, 1999 at 01:58:37PM +0200, Paul Slootman wrote:
> egcs version: 1.1.2
> system type: Alpha (linux)
> command line: gcc -c -O2 bla.c

This no longer fails with gcc 2.95, so apparently the bug
has been fixed.


r~


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

end of thread, other threads:[~1999-06-30 23:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-30 23:07 'internal error--unrecognizable insn' on Alpha linux Paul Slootman
1999-06-25  5:18 ` Jeffrey A Law
1999-06-30 23:07 ` Richard Henderson

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