Hello. Sorry if the summary is a little vague, I dont really know a whole bunch about gcc terminology ;) So anyway, I wrote a simple program in C that computes the factorials of numbers 1 through 100 (yes, after 7 they get super big). When this program is compiled as
gcc -ffast-math factorial.c I get an ICE; [EMAIL PROTECTED]:~/c$ gcc -Wall -ffast-math factorials.c factorials.c:8: warning: return type defaults to int factorials.c: In function main: factorials.c:24: internal compiler error: in instantiate_virtual_regs_lossage, at function.c:1442 [EMAIL PROTECTED]:~/c$ gcc -dumpversion 4.0.2 This gcc is from Ubuntu-breezy, gcc-4.0 branch, CVS 20050718. Running on a Pentium 4. It told me to report this bug, so here I am :) Regardless of whether this can be done in a simpler manner, and I'm /sure/ it can, I dont think gcc should die because of it. The offending code is attached. -save-temps output also attached. -- Summary: ICE with simple factorial program compiled with -ffast- math on gcc 4.0.2 Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: black dot hole dot sun16 at gmail dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22576