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/38090] New: Internal compiler error: in extract_insn while building linux-kernel from git with -Os or -O1 and higher


Hello,

with gcc-4.4 from trunk (tested on revisions 140300 and 141769) I get internal
error while building kernel from git.

It happen after this commit to linux-2.6.git tree 
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=d6c88a507ef0b6afdb013cba4e7804ba7324d99a

gcc-4.3 revision 141421 works good

Steps for reproduce

Checkout linux-2.6.git from git.kernel.org
run with optimisation higher then zero or with -Os

gcc-4.4.0-pre9999 -O1 -D__KERNEL__ -Iinclude 
-I/usr/src/linux-2.6/arch/x86/include -include include/linux/autoconf.h
-Iinclude/asm-x86/mach-default -c -o arch/x86/kernel/.tmp_setup_percpu.o
arch/x86/kernel/setup_percpu.c

Error message:
  CC      arch/x86/kernel/setup_percpu.o
arch/x86/kernel/setup_percpu.c: In function ?setup_per_cpu_areas?:
arch/x86/kernel/setup_percpu.c:194: error: unrecognizable insn:
(insn 64 63 65 8 arch/x86/kernel/setup_percpu.c:154 (set (reg:DI 100)
        (const:DI (plus:DI (minus:DI (symbol_ref:DI ("__per_cpu_end") [flags
0x40] <var_decl 0x2b184a5a11e0 __per_cpu_end>)
                    (symbol_ref:DI ("__per_cpu_start") [flags 0x40] <var_decl
0x2b184a5a1140 __per_cpu_start>))
                (const_int 12287 [0x2fff])))) -1 (nil))
arch/x86/kernel/setup_percpu.c:194: internal compiler error: in extract_insn,
at recog.c:2027
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
make[1]: *** [arch/x86/kernel/setup_percpu.o] Error 1
make: *** [arch/x86/kernel] Error 2


-- 
           Summary: Internal compiler error: in extract_insn while building
                    linux-kernel from git with -Os or -O1 and higher
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: martin dot jansa at mk dot cvut dot cz


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


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