From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A348D3857B85; Fri, 17 Jun 2022 14:29:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A348D3857B85 From: "nemanja.i.ibm at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/106016] New: [PowerPC] crash with attempt to initialize array of MMA accumulators Date: Fri, 17 Jun 2022 14:29:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nemanja.i.ibm at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2022 14:29:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106016 Bug ID: 106016 Summary: [PowerPC] crash with attempt to initialize array of MMA accumulators Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nemanja.i.ibm at gmail dot com Target Milestone: --- Code: $ cat aa.c=20 void array_crash(__vector_quad *a, __vector_quad *b) { __vector_quad arr[2] =3D {*a, *b}; // Should not crash } Compile: $ /opt/gcc-nightly/12/bin/gcc -mcpu=3Dpower10 -O3 aa.c -S aa.c: In function 'array_crash': aa.c:2:17: internal compiler error: in count_type_elements, at expr.cc:6407 2 | __vector_quad arr[2] =3D {*a, *b}; // Should not crash | ^~~ 0x105583df count_type_elements /home/gccbuild/gcc_12_git/gcc/gcc/expr.cc:6407 0x1055cd3b categorize_ctor_elements_1 /home/gccbuild/gcc_12_git/gcc/gcc/expr.cc:6519 0x10646293 gimplify_init_constructor /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:5179 0x10647643 gimplify_modify_expr /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:6040 0x10639d93 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_nod= e*), int) /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:15098 0x10643fd3 gimplify_stmt(tree_node**, gimple**) /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:7151 0x10643fd3 gimplify_and_add(tree_node*, gimple**) /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:496 0x10643fd3 gimplify_decl_expr /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:1936 0x1063ad0b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_nod= e*), int) /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:15295 0x10642b6f gimplify_stmt(tree_node**, gimple**) /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:7151 0x10642b6f gimplify_bind_expr /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:1428 0x1063a79b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_nod= e*), int) /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:15299 0x1063e3d7 gimplify_stmt(tree_node**, gimple**) /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:7151 0x1063e3d7 gimplify_body(tree_node*, bool) /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:16355 0x1063e83b gimplify_function_tree(tree_node*) /home/gccbuild/gcc_12_git/gcc/gcc/gimplify.cc:16509 0x1044cab7 cgraph_node::analyze() /home/gccbuild/gcc_12_git/gcc/gcc/cgraphunit.cc:676 0x1044fbf7 analyze_functions /home/gccbuild/gcc_12_git/gcc/gcc/cgraphunit.cc:1241 0x10450893 symbol_table::finalize_compilation_unit() /home/gccbuild/gcc_12_git/gcc/gcc/cgraphunit.cc:2501 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Version: $ /opt/gcc-nightly/12/bin/gcc --version gcc (GCC) 12.1.1 20220524 [releases/gcc-12 r12-8410-gf0a0aeec44] Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.=