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

--- Comment #14 from Andreas Schwab <sch...@linux-m68k.org> ---
That completely breaks aarch64 (almost every coroutines test):

spawn -ignore SIGHUP /opt/gcc/gcc-20200415/Build/gcc/testsuite/g++/../../xg++
-B/opt/gcc/gcc-20200415/Build/gcc/testsuite/g++/../../
/opt/gcc/gcc-20200415/gcc/testsuite/g++.dg/coroutines/pr94528.C -mabi=lp64
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++
-I/opt/gcc/gcc-20200415/Build/aarch64-suse-linux/libstdc++-v3/include/aarch64-suse-linux
-I/opt/gcc/gcc-20200415/Build/aarch64-suse-linux/libstdc++-v3/include
-I/opt/gcc/gcc-20200415/libstdc++-v3/libsupc++
-I/opt/gcc/gcc-20200415/libstdc++-v3/include/backward
-I/opt/gcc/gcc-20200415/libstdc++-v3/testsuite/util -fmessage-length=0
-pedantic-errors -Wno-long-long -std=c++17 -fcoroutines -std=c++20
-fpreprocessed -w -S -o pr94528.s
/opt/gcc/gcc-20200415/gcc/testsuite/g++.dg/coroutines/pr94528.C: In function
'void
cppcoro::_ZN7cppcoro16make_shared_taskENS_4taskE.actor(cppcoro::make_shared_task(cppcoro::task)::_ZN7cppcoro16make_shared_taskENS_4taskE.frame*)':
/opt/gcc/gcc-20200415/gcc/testsuite/g++.dg/coroutines/pr94528.C:63:1: internal
compiler error: Segmentation fault
0xf2d113 crash_signal
        ../../gcc/toplev.c:328
0x12ac010 predefined_function_abi::id() const
        ../../gcc/function-abi.h:39
0x12ac010 aarch64_function_ok_for_sibcall
        ../../gcc/config/aarch64/aarch64.c:5278
0x70989f build_actor_fn
        ../../gcc/cp/coroutines.cc:2387
0x70c063 morph_fn_to_coro(tree_node*, tree_node**, tree_node**)
        ../../gcc/cp/coroutines.cc:3963
0x7682d7 finish_function(bool)
        ../../gcc/cp/decl.c:16941
0x84778b cp_parser_function_definition_after_declarator
        ../../gcc/cp/parser.c:28992
0x848653 cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc/cp/parser.c:28905
0x848653 cp_parser_init_declarator
        ../../gcc/cp/parser.c:20667
0x825237 cp_parser_simple_declaration
        ../../gcc/cp/parser.c:13731
0x853e3f cp_parser_declaration
        ../../gcc/cp/parser.c:13430
0x853be7 cp_parser_toplevel_declaration
        ../../gcc/cp/parser.c:13458
0x853be7 cp_parser_declaration_seq_opt
        ../../gcc/cp/parser.c:13306
0x853be7 cp_parser_namespace_body
        ../../gcc/cp/parser.c:19714
0x853be7 cp_parser_namespace_definition
        ../../gcc/cp/parser.c:19692
0x853f6f cp_parser_declaration
        ../../gcc/cp/parser.c:13410
0x8545bf cp_parser_translation_unit
        ../../gcc/cp/parser.c:4731
0x8545bf c_parse_file()
        ../../gcc/cp/parser.c:43961
0x9bfb57 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1190

Reply via email to