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]

[Bug c/13043] New: amd64: internal compiler error: in extract_insn, at recog.c:2175


Problem goes away if -march=i686 is not specified.

[siml4]$ xgcc-amd -v -save-temps -O2 -march=i686 xx.c
Reading specs from /u/nomura/dl/gcc-3.3.2_amd_linux/gcc/specs
Configured with: ../gcc-3.3.2/configure --target=x86_64-unknown-linux
-enable-languages=c --disable-multilib
Thread model: posix
gcc version 3.3.2
 /u/nomura/dl/gcc-3.3.2_amd_linux/gcc/cc1 -E -quiet -v -iprefix
/u/nomura/dl/gcc-3.3.2_amd_linux/gcc/../lib/gcc-lib/x86_64-unknown-linux/3.3.2/
-isystem /u/nomura/dl/gcc-3.3.2_amd_linux/gcc/include -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 xx.c -march=i686 -O2 xx.i
ignoring nonexistent directory
"/u/nomura/dl/gcc-3.3.2_amd_linux/lib/gcc-lib/x86_64-unknown-linux/3.3.2/include"
ignoring nonexistent directory
"/u/nomura/dl/gcc-3.3.2_amd_linux/lib/gcc-lib/x86_64-unknown-linux/3.3.2/../../../../x86_64-unknown-linux/sys-include"
ignoring nonexistent directory
"/u/nomura/dl/gcc-3.3.2_amd_linux/lib/gcc-lib/x86_64-unknown-linux/3.3.2/../../../../x86_64-unknown-linux/include"
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory
"/usr/local/lib/gcc-lib/x86_64-unknown-linux/3.3.2/include"
ignoring nonexistent directory "/usr/local/x86_64-unknown-linux/sys-include"
ignoring nonexistent directory "/usr/local/x86_64-unknown-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /u/nomura/dl/gcc-3.3.2_amd_linux/gcc/include
End of search list.
 /u/nomura/dl/gcc-3.3.2_amd_linux/gcc/cc1 -fpreprocessed xx.i -quiet -dumpbase
xx.c -march=i686 -auxbase xx -O2 -version -o xx.s
GNU C version 3.3.2 (x86_64-unknown-linux)
        compiled by GNU C version 3.2 20020903 (Red Hat Linux 8.0 3.2-7).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
xx.c: In function `foo':
xx.c:5: error: unrecognizable insn:
(insn:HI 49 48 26 0 (nil) (set (reg:SI 58)
        (plus:SI (mult:SI (reg:SI 58)
                (const_int 4 [0x4]))
            (const_int -2 [0xfffffffffffffffe]))) -1 (insn_list 48 (nil))
    (nil))
xx.c:5: internal compiler error: in extract_insn, at recog.c:2175
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[siml4]$ 


[siml4]$ cat xx.i
# 1 "xx.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "xx.c"
int foo (int i) {
        if (i)
                return 2;
        return -2;
}

-- 
           Summary: amd64: internal compiler error: in extract_insn, at
                    recog.c:2175
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nomura at netapp dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-redhat-linux
GCC target triplet: x86_64-unknown-linux


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


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