This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/5649: -O2 on powerpc yields ICE, affects linux/drivers/ieee1394/ohci1394.c



>Number:         5649
>Category:       optimization
>Synopsis:       -O2 on powerpc yields ICE, affects linux/drivers/ieee1394/ohci1394.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 09 19:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Paul Stoeber
>Release:        3.1 20020209 (experimental)
>Organization:
>Environment:
System: Linux manelan061.rz.tu-ilmenau.de 2.4.18-pre9 #2 Sat Feb 9 22:10:54 UTC 2002 ppc unknown
Architecture: ppc

host: powerpc-unknown-linux-gnu
build: powerpc-unknown-linux-gnu
target: powerpc-unknown-linux-gnu
configured with: ../gcc/configure --prefix=/room/newnew/gcc-inst --enable-languages=c
>Description:
$ cat bug.c
int foo(void);
void bar(int x) {
  if (foo()) {
    if (x==0) return;
    if (foo()) { if (foo()) x++; if (x>0) foo(); }
  }
}
$ gcc -v -O2 -Wall bug.c
Reading specs from /room/newnew/gcc-inst/lib/gcc-lib/powerpc-unknown-linux-gnu/3.1/specs
Configured with: ../gcc/configure --prefix=/room/newnew/gcc-inst --enable-languages=c
Thread model: single
gcc version 3.1 20020209 (experimental)
 /room/newnew/gcc-inst/lib/gcc-lib/powerpc-unknown-linux-gnu/3.1/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ -D__powerpc__ -D__PPC -D__powerpc -Acpu=powerpc -Amachine=powerpc -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_CALL_SYSV -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine=bigendian -D_ARCH_PPC -D__unix__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix bug.c -quiet -dumpbase bug.c -O2 -version -o /tmp/ccSidxm6.s
GNU CPP version 3.1 20020209 (experimental) (cpplib) (PowerPC GNU/Linux)
GNU C version 3.1 20020209 (experimental) (powerpc-unknown-linux-gnu)
	compiled by GNU C version 3.1 20020209 (experimental).
ignoring nonexistent directory "/room/newnew/gcc-inst/powerpc-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /room/newnew/gcc-inst/include
 /room/newnew/gcc-inst/lib/gcc-lib/powerpc-unknown-linux-gnu/3.1/include
 /usr/include
End of search list.
bug.c: In function `bar':
bug.c:7: unrecognizable insn:
(insn 82 31 83 (set (reg:SI 0 r0)
        (plus:SI (lshiftrt:SI (neg:SI (abs:SI (reg:SI 3 r3 [121])))
                (const_int 31 [0x1f]))
            (reg/v:SI 31 r31 [115]))) -1 (nil)
    (nil))
bug.c:7: Internal compiler error in extract_insn, at recog.c:2129
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:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]