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

            Bug ID: 97447
           Summary: During IPA pass: modref: ICE on
                    gcc.dg/atomic/pr65345-4.c
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vvinayag at arm dot com
  Target Milestone: ---

The test gcc.dg/atomic/pr65345-4.c causes ICE on arm-none-linux-gnueabihf and
aarch64-none-linux-gnu.

On aarch64-none-linux-gnu:

spawn /obj/gcc/gcc/xgcc  /src/gcc/gcc/testsuite/gcc.dg/atomic/pr65345-4.c
-L/obj/gcc/aarch64-none-linux-gnu/./libatomic/.libs -latomic
-fdiagnostics-plain-output -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects
-S -o pr65345-4.s

during IPA pass: modref
/src/gcc/gcc/testsuite/gcc.dg/atomic/pr65345-4.c:58:1: internal compiler error:
tree code 'ssa_name' is not supported in LTO streams
0xba17d3 lto_write_tree
        /src/gcc/gcc/lto-streamer-out.c:554
0xba17d3 lto_output_tree_1
        /src/gcc/gcc/lto-streamer-out.c:592
0xba9c6f DFS::DFS(output_block*, tree_node*, bool, bool, bool)
        /src/gcc/gcc/lto-streamer-out.c:892
0xbaaf4f lto_output_tree(output_block*, tree_node*, bool, bool)
        /src/gcc/gcc/lto-streamer-out.c:1853
0xba07af write_global_stream
        /src/gcc/gcc/lto-streamer-out.c:2846
0xbadb73 lto_output_decl_state_streams(output_block*, lto_out_decl_state*)
        /src/gcc/gcc/lto-streamer-out.c:2893
0xbadb73 produce_asm_for_decls()
        /src/gcc/gcc/lto-streamer-out.c:3287
0xc38cef write_lto
        /src/gcc/gcc/passes.c:2624
0xc38cef ipa_write_summaries_1
        /src/gcc/gcc/passes.c:2685
0xc38cef ipa_write_summaries()
        /src/gcc/gcc/passes.c:2740
0x899f63 ipa_passes
        /src/gcc/gcc/cgraphunit.c:2690
0x899f63 symbol_table::compile()
        /src/gcc/gcc/cgraphunit.c:2777
0x89c59b symbol_table::compile()
        /src/gcc/gcc/cgraphunit.c:2757
0x89c59b symbol_table::finalize_compilation_unit()
        /src/gcc/gcc/cgraphunit.c:3022
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
compiler exited with status 1

Build:aarch64-none-linux-gnu
Host:aarch64-none-linux-gnu
Target:aarch64-none-linux-gnu

Reply via email to