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/30392] New: ice for legal kernel code with -Os


I just tried to compile Linux kernel 2.6.19.1 with
the new GNU C compiler version 4.3 snapshot 20070105.

The compiler said

mm/slab.c: At top level:
mm/slab.c:4266: error: edge __kmalloc->__builtin_constant_p has no
corresponding call_stmt
mm/slab.c:4266: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [mm/slab.o] Error 1

Here is some help from valgrind

==12784== Invalid read of size 8
==12784==    at 0x4D34E7: ssa_operands_active (tree-ssa-operands.c:267)
==12784==    by 0x4B4035: dump_generic_node (tree-pretty-print.c:2705)
==12784==    by 0x4BEDFE: print_generic_stmt (tree-pretty-print.c:130)
==12784==    by 0x4BEE37: debug_generic_stmt (tree-pretty-print.c:98)
==12784==    by 0x8749DB: verify_cgraph_node (cgraphunit.c:818)
==12784==    by 0x874CF7: verify_cgraph (cgraphunit.c:842)
==12784==    by 0x875968: cgraph_remove_unreachable_nodes (ipa.c:105)
==12784==    by 0x87716C: cgraph_early_inlining (ipa-inline.c:1226)
==12784==    by 0x811694: execute_one_pass (passes.c:932)
==12784==    by 0x81181F: execute_ipa_pass_list (passes.c:996)
==12784==    by 0x8754CB: cgraph_optimize (cgraphunit.c:1433)
==12784==    by 0x4168D9: c_write_global_declarations (c-decl.c:7969)
==12784==  Address 0x28 is not stack'd, malloc'd or (recently) free'd

Preprocessed source code attached. Flag -Os required.


-- 
           Summary: ice for legal kernel code with -Os
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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


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