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

            Bug ID: 122456
           Summary: [16 regression] LTO+profiledbootstrap failure on
                    aarch64 since r16-4604-g8b9cd6490ce507
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: build, wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: [email protected]
            Blocks: 114725
  Target Milestone: ---
            Target: aarch64-*-*

r16-4604-g8b9cd6490ce507 has broken LTO+profiledbootstrap on aarch64,
apparently miscompiling lto1 during stagetrain.  It crashes during
stagefeedback while linking cc1.

https://build.opensuse.org/package/live_build_log/devel:gcc:next/gcc16/openSUSE_Factory_ARM/aarch64

/home/abuild/rpmbuild/BUILD/gcc16-16.0.0+git4637-build/gcc-16.0.0+git4637/obj-aarch64-suse-linux/./prev-gcc/xg++
-B/home/abuild/rpmbuild/BUILD/gcc16-16.0.0+git4637-build/gcc-16.0.0+git4637/obj-aarch64-suse-linux/./prev-gcc/
-B/usr/aarch64-suse-linux/bin/ -nostdinc++
-B/home/abuild/rpmbuild/BUILD/gcc16-16.0.0+git4637-build/gcc-16.0.0+git4637/obj-aarch64-suse-linux/prev-aarch64-suse-linux/libstdc++-v3/src/.libs
-B/home/abuild/rpmbuild/BUILD/gcc16-16.0.0+git4637-build/gcc-16.0.0+git4637/obj-aarch64-suse-linux/prev-aarch64-suse-linux/libstdc++-v3/libsupc++/.libs

-I/home/abuild/rpmbuild/BUILD/gcc16-16.0.0+git4637-build/gcc-16.0.0+git4637/obj-aarch64-suse-linux/prev-aarch64-suse-linux/libstdc++-v3/include/aarch64-suse-linux

-I/home/abuild/rpmbuild/BUILD/gcc16-16.0.0+git4637-build/gcc-16.0.0+git4637/obj-aarch64-suse-linux/prev-aarch64-suse-linux/libstdc++-v3/include

-I/home/abuild/rpmbuild/BUILD/gcc16-16.0.0+git4637-build/gcc-16.0.0+git4637/libstdc++-v3/libsupc++
-L/home/abuild/rpmbuild/BUILD/gcc16-16.0.0+git4637-build/gcc-16.0.0+git4637/obj-aarch64-suse-linux/prev-aarch64-suse-linux/libstdc++-v3/src/.libs
-L/home/abuild/rpmbuild/BUILD/gcc16-16.0.0+git4637-build/gcc-16.0.0+git4637/obj-aarch64-suse-linux/prev-aarch64-suse-linux/libstdc++-v3/libsupc++/.libs
-no-pie   -mbranch-protection=standard -O2 -Wall -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type  -g
-fprofile-use -fprofile-reproducible=parallel-runs -flto=jobserver -DIN_GCC   
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings  -DHAVE_CONFIG_H -no-pie
-static-libstdc++ -static-libgcc  -o cc1 c/c-lang.o c-family/stub-objc.o
attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o
c/c-objc-common.o c/c-parser.o c/c-fold.o c/gimple-parser.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o
c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o
c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o
c-family/c-ada-spec.o c-family/c-ubsan.o c-family/known-headers.o
c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o
c-family/c-type-mismatch.o aarch64-c.o glibc-c.o \
  cc1-checksum.o simple-diagnostic-path.o diagnostics/lazy-paths.o libbackend.a
main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a  
../libbacktrace/.libs/libbacktrace.a ../libiberty/pic/libiberty.a
../libdecnumber/libdecnumber.a  -lisl -lmpc -lmpfr -lgmp -rdynamic  -lz -lzstd 
../../gcc/c-family/c-common.cc: In function ‘c_define_builtins’:
../../gcc/c-family/c-common.cc:4268:1: note: variable tracking size limit
exceeded with ‘-fvar-tracking-assignments’, retrying without
 4268 | c_define_builtins (tree va_list_ref_type_node, tree
va_list_arg_type_node)
      | ^
In function ‘wi_fold.constprop’:
lto1: internal compiler error: Segmentation fault
0x23d84d7 internal_error(char const*, ...)
        ../../gcc/diagnostic-global-context.cc:787
0xfa047f crash_signal
        ../../gcc/toplev.cc:323
0x956810 symtab_node::semantically_equivalent_p(symtab_node*)
        ../../gcc/symtab.cc:2133
0x9693e7 cgraph_edge::resolve_speculation(cgraph_edge*, tree_node*)
        ../../gcc/cgraph.cc:1531
0x96b953 cgraph_update_edges_for_call_stmt_node
        ../../gcc/cgraph.cc:1995
0x96ba33 cgraph_update_edges_for_call_stmt(gimple*, tree_node*, gimple*)
        ../../gcc/cgraph.cc:2069
0x1037c33 fold_marked_statements
        ../../gcc/tree-inline.cc:5575
0x104844b tree_function_versioning(tree_node*, tree_node*,
vec<ipa_replace_map*, va_gc, vl_embed>*, ipa_param_adjustments*, bool,
bitmap_head*, basic_block_def*)
        ../../gcc/tree-inline.cc:6555
0x97b76f cgraph_node::materialize_clone()
        ../../gcc/cgraphclones.cc:1231
0x96669b cgraph_node::get_untransformed_body()
        ../../gcc/cgraph.cc:4530
0x974ba7 cgraph_node::expand()
        ../../gcc/cgraphunit.cc:1839
0x974ba7 cgraph_node::expand()
        ../../gcc/cgraphunit.cc:1821
0x975ea3 expand_all_functions
        ../../gcc/cgraphunit.cc:2027
0x975ea3 symbol_table::compile()
        ../../gcc/cgraphunit.cc:2428
0x975ea3 symbol_table::compile()
        ../../gcc/cgraphunit.cc:2336
0x890a8f lto_main()
        ../../gcc/lto/lto.cc:693
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.opensuse.org/> for instructions.
make[4]: *** [/tmp/ccB6ppwT.mk:392: /tmp/ccvoUfft.ltrans195.ltrans.o] Error 1
make[4]: *** Waiting for unfinished jobs....
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/aarch64-suse-linux/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [../../gcc/c/Make-lang.in:88: cc1] Error 1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114725
[Bug 114725] Missed optimization: more precise range for and

Reply via email to