public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/44700]  New: Internal error (case derived from netpbm)
@ 2010-06-28 17:20 michael at talamasca dot ocis dot net
  2010-06-28 17:40 ` [Bug target/44700] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: michael at talamasca dot ocis dot net @ 2010-06-28 17:20 UTC (permalink / raw)
  To: gcc-bugs

I've experienced an internal compiler error attempting to compile
netpbm-10.35.75 under -Os optimization.  I've reduced the problem file
(pamscale.c) down to a minimal example:

Script started on Mon Jun 28 10:15:13 2010
bash-4.1$ cat break-gcc.i
extern int bar(void);

int foo(float f, int i)
{
    return f * 2 < i || bar();
}
bash-4.1$ gcc -c -Os -ffast-math break-gcc.i
break-gcc.i: In function 'foo':
break-gcc.i:6:1: error: unrecognizable insn:
(jump_insn 39 41 12 2 break-gcc.i:5 (set (pc)
        (if_then_else (lt (reg:CCFP 17 flags)
                (const_int 0 [0x0]))
            (label_ref:SI 18)
            (pc))) -1 (expr_list:REG_BR_PROB (const_int 6102 [0x17d6])
        (nil))
 -> 18)
break-gcc.i:6:1: internal compiler error: in extract_insn, at recog.c:2103
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
bash-4.1$ exit
exit

Script done on Mon Jun 28 10:15:35 2010

-Os and -ffast-math are both essential to trigger the bug.


-- 
           Summary: Internal error (case derived from netpbm)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael at talamasca dot ocis dot net
 GCC build triplet: i386-pc-linux-uclibc
  GCC host triplet: i386-pc-linux-uclibc
GCC target triplet: i386-pc-linux-uclibc


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44700


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

* [Bug target/44700] Internal error (case derived from netpbm)
  2010-06-28 17:20 [Bug c/44700] New: Internal error (case derived from netpbm) michael at talamasca dot ocis dot net
@ 2010-06-28 17:40 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-06-28 17:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-06-28 17:39 -------


*** This bug has been marked as a duplicate of 44546 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44700


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

end of thread, other threads:[~2010-06-28 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-28 17:20 [Bug c/44700] New: Internal error (case derived from netpbm) michael at talamasca dot ocis dot net
2010-06-28 17:40 ` [Bug target/44700] " pinskia 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).