Bug 13043 - amd64: internal compiler error: in extract_insn, at recog.c:2175
Summary: amd64: internal compiler error: in extract_insn, at recog.c:2175
Status: RESOLVED DUPLICATE of bug 12584
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.3.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-13 22:56 UTC by nomura
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i386-redhat-linux
Target: x86_64-unknown-linux
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nomura 2003-11-13 22:56:19 UTC
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;
}
Comment 1 Andrew Pinski 2003-11-13 23:09:30 UTC
This is a dup of bug 12584, which is fixed on the mainline by reject that option.

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