https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64552

            Bug ID: 64552
           Summary: Build broken for cris-elf and others
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hp at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org

Created attachment 34414
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34414&action=edit
Observe crash with ./cc1  -quiet -fpreprocessed unwind-dw2.i -O2 -o
unwind-dw2.s

With a commit in the range (219373:219378] but from the crash message obviously
r219377, the build is broken for cris-elf, and
<http://gcc.gnu.org/ml/gcc-patches/2015-01/msg00534.html> indicates a similar
(but not identical) crash for arm-eabi.  Configure for cris-elf, then build and
observe, building libgcc:

/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc
-B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc
-B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib/ -isystem
/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib/targ-include -isystem
/tmp/hpautotest-gcc1/gcc/newlib/libc/include
-B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/libgloss/cris
-L/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/libgloss/libnosys
-L/tmp/hpautotest-gcc1/gcc/libgloss/cris
-B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/
-B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem
/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem
/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include    -g -O2 -march=v8
-mbest-lib-options -O2  -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include   -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector -Dinhibit_libc  -I. -I. -I../../.././gcc
-I/tmp/hpautotest-gcc1/gcc/libgcc -I/tmp/hpautotest-gcc1/gcc/libgcc/.
-I/tmp/hpautotest-gcc1/gcc/libgcc/../gcc
-I/tmp/hpautotest-gcc1/gcc/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o
unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c
/tmp/hpautotest-gcc1/gcc/libgcc/unwind-dw2.c -fvisibility=hidden -DHIDE_EXPORTS
/tmp/hpautotest-gcc1/gcc/libgcc/unwind-dw2.c:1695:0: internal compiler error:
Segmentation fault

 ^
0x9bd705 crash_signal
        /tmp/hpautotest-gcc1/gcc/gcc/toplev.c:366
0xd682b9 tree_check
        /tmp/hpautotest-gcc1/gcc/gcc/tree.h:2778
0xd682b9 target_opts_for_fn
        /tmp/hpautotest-gcc1/gcc/gcc/tree.h:4681
0xd682b9 ipa_icf::sem_function::equals_private(ipa_icf::sem_item*,
hash_map<symtab_node*, ipa_icf::sem_item*, default_hashmap_traits>&)
        /tmp/hpautotest-gcc1/gcc/gcc/ipa-icf.c:431
0xd68dd9 ipa_icf::sem_function::equals(ipa_icf::sem_item*,
hash_map<symtab_node*, ipa_icf::sem_item*, default_hashmap_traits>&)
        /tmp/hpautotest-gcc1/gcc/gcc/ipa-icf.c:386
0xd64425 ipa_icf::sem_item_optimizer::subdivide_classes_by_equality(bool)
        /tmp/hpautotest-gcc1/gcc/gcc/ipa-icf.c:1893
0xd675cc ipa_icf::sem_item_optimizer::execute()
        /tmp/hpautotest-gcc1/gcc/gcc/ipa-icf.c:1712
0xd6a501 ipa_icf_driver
        /tmp/hpautotest-gcc1/gcc/gcc/ipa-icf.c:2441
0xd6a501 ipa_icf::pass_ipa_icf::execute(function*)
        /tmp/hpautotest-gcc1/gcc/gcc/ipa-icf.c:2489
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [unwind-dw2.o] Error 1
make[4]: Leaving directory
`/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v8/libgcc'

Preprocessed code attached, committer of failing revision CC:ed.

Reply via email to