This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/2675: 3.0 branch ICE when inlining (does not occur on 2.95.2)
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/2675: 3.0 branch ICE when inlining (does not occur on 2.95.2)
- From: Dan Nicolaescu <dann at godzilla dot ics dot uci dot edu>
- Date: 28 Apr 2001 03:45:27 -0000
- Reply-To: Dan Nicolaescu <dann at godzilla dot ics dot uci dot edu>
>Number: 2675
>Category: c
>Synopsis: 3.0 branch ICE when inlining (does not occur on 2.95.2)
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Fri Apr 27 20:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Dan Nicolaescu <dann@godzilla.ics.uci.edu>
>Release: unknown-1.0
>Organization:
>Environment:
sun-sparc-solaris2.7
gcc snapshot from 2001-04-23
>Description:
The following code gets an ICE when compiled with
-O2 -finline-functions
(or -O3)
void f1 (double);
void f2 (int);
void
foo (int type, double xx)
{
if (type)
f1 (xx);
else
f2 (type);
}
void
bar (int type)
{
foo (type, 1.0);
}
range.i: In function `bar':
range.i:18: Unrecognizable insn:
(insn/i 29 42 30 (set (reg:DF 24 %i0)
(reg/v:SI 106)) -1 (nil)
(expr_list:REG_DEAD (reg/v:SI 106)
(expr_list:REG_EQUAL (const_int 0 [0x0])
(nil))))
range.i:18: Internal compiler error in extract_insn, at recog.c:2212
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
compile the code above using -O2 -finline-functions
on a sun-sparc-solaris2.7 machine with the
gcc snapshot from 2001-04-23
It also crashes on the mainline.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: