public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "nemanja.i.ibm at gmail dot com" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-106016-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106016 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 void array_crash(__vector_quad *a, __vector_quad *b) { __vector_quad arr[2] = {*a, *b}; // Should not crash } Compile: $ /opt/gcc-nightly/12/bin/gcc -mcpu=power10 -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] = {*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_node*), 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_node*), 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_node*), 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 <https://gcc.gnu.org/bugs/> 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.
next reply other threads:[~2022-06-17 14:29 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-17 14:29 nemanja.i.ibm at gmail dot com [this message] 2022-06-17 17:19 ` [Bug target/106016] " segher at gcc dot gnu.org 2022-06-17 17:33 ` bergner at gcc dot gnu.org 2022-06-17 17:39 ` segher at gcc dot gnu.org 2022-06-17 19:30 ` bergner at gcc dot gnu.org 2022-06-17 19:37 ` bergner at gcc dot gnu.org 2022-06-17 19:53 ` segher at gcc dot gnu.org 2022-06-17 21:51 ` bergner at gcc dot gnu.org 2022-06-18 0:15 ` bergner at gcc dot gnu.org 2022-06-18 4:33 ` [Bug c/106016] " bergner at gcc dot gnu.org 2022-06-20 18:46 ` [Bug middle-end/106016] " segher at gcc dot gnu.org 2022-07-26 15:05 ` cvs-commit at gcc dot gnu.org 2022-08-12 0:26 ` cvs-commit at gcc dot gnu.org 2022-08-12 2:09 ` cvs-commit at gcc dot gnu.org 2022-08-12 2:12 ` bergner at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-106016-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).