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 ipa/64564] New: Internal compiler error: Segmentation fault caused by IPA ICF


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

            Bug ID: 64564
           Summary: Internal compiler error: Segmentation fault caused by
                    IPA ICF
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Hale.Wang at arm dot com

Created attachment 34417
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34417&action=edit
Generated by pre-compile the source code from
newlib/newlib/libc/stdlib/envlock.c

GCC build fails for ARM target(caused by the IPA ICF update @219377).

I built the latest gcc trunk with the configuration: '--target=arm-none-eabi'.

The compile command is: 'arm-none-eabi-gcc -O2 envlock.i -S -mthumb'.(The
attachment envlock.i is generated by pre-compile the source code from
newlib/newlib/libc/stdlib/envlock.c)

And the error message is reported as: 
newlib/newlib/libc/stdlib/envlock.c:61:1: internal compiler error: Segmentation
fault
 }
 ^
0xa421ff crash_signal
    ../../src/gcc/gcc/toplev.c:366
0xf728af tree_check
    ../../src/gcc/gcc/tree.h:2778
0xf728af target_opts_for_fn
    ../../src/gcc/gcc/tree.h:4681
0xf728af ipa_icf::sem_function::equals_private(ipa_icf::sem_item*,
hash_map<symtab_node*, ipa_icf::sem_item*, default_hashmap_traits>&)
    ../../src/gcc/gcc/ipa-icf.c:431
0xf73533 ipa_icf::sem_function::equals(ipa_icf::sem_item*,
hash_map<symtab_node*, ipa_icf::sem_item*, default_hashmap_traits>&)
    ../../src/gcc/gcc/ipa-icf.c:386
0xf7596a ipa_icf::sem_item_optimizer::subdivide_classes_by_equality(bool)
    ../../src/gcc/gcc/ipa-icf.c:1893
0xf7a29c ipa_icf::sem_item_optimizer::execute()
    ../../src/gcc/gcc/ipa-icf.c:1712
0xf7aec1 ipa_icf_driver
    ../../src/gcc/gcc/ipa-icf.c:2441
0xf7aec1 ipa_icf::pass_ipa_icf::execute(function*)
    ../../src/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.

Best regards,
-Hale Wang


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