public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22576] New: ICE with simple factorial program compiled with -ffast-math on gcc 4.0.2
@ 2005-07-20 19:29 black dot hole dot sun16 at gmail dot com
  2005-07-20 19:30 ` [Bug c/22576] " black dot hole dot sun16 at gmail dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 16+ messages in thread
From: black dot hole dot sun16 at gmail dot com @ 2005-07-20 19:29 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]

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;

paul@nephilim:~/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
paul@nephilim:~/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


^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <bug-22576-11026@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-07  5:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-20 19:29 [Bug c/22576] New: ICE with simple factorial program compiled with -ffast-math on gcc 4.0.2 black dot hole dot sun16 at gmail dot com
2005-07-20 19:30 ` [Bug c/22576] " black dot hole dot sun16 at gmail dot com
2005-07-20 19:30 ` black dot hole dot sun16 at gmail dot com
2005-07-20 19:32 ` black dot hole dot sun16 at gmail dot com
2005-07-20 19:33 ` [Bug target/22576] " pinskia at gcc dot gnu dot org
2005-07-20 19:33 ` [Bug c/22576] " black dot hole dot sun16 at gmail dot com
2005-07-20 19:39 ` [Bug target/22576] " black dot hole dot sun16 at gmail dot com
2005-07-20 22:02 ` [Bug target/22576] [4.0/4.1 regression] " reichelt at gcc dot gnu dot org
2005-07-20 23:39 ` black dot hole dot sun16 at gmail dot com
2005-07-21  8:02 ` uros at kss-loka dot si
2005-07-21 17:10 ` reichelt at gcc dot gnu dot org
2005-07-21 19:55 ` cvs-commit at gcc dot gnu dot org
2005-07-21 19:58 ` cvs-commit at gcc dot gnu dot org
2005-07-21 20:38 ` pinskia at gcc dot gnu dot org
2005-09-26 19:20 ` cvs-commit at gcc dot gnu dot org
     [not found] <bug-22576-11026@http.gcc.gnu.org/bugzilla/>
2005-10-07  5:32 ` cvs-commit 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).