public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/112488] [14 Regression] ICE in make_ssa_name_fn with VLA inside type and inlining since r14-1142 Date: Mon, 11 Dec 2023 22:20:22 +0000 [thread overview] Message-ID: <bug-112488-4-ibZB0AKUZO@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-112488-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112488 --- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Uecker <uecker@gcc.gnu.org>: https://gcc.gnu.org/g:6cf9654c3b06c076502a39a3bf2222dd6e43b73b commit r14-6436-g6cf9654c3b06c076502a39a3bf2222dd6e43b73b Author: Martin Uecker <uecker@tugraz.at> Date: Wed Nov 15 09:22:55 2023 +0100 Fix regression causing ICE for structs with VLAs [PR 112488] A previous patch that fixed several ICEs related to size expressions of VM types (PR c/70418, ...) caused a regression for structs where a DECL_EXPR is not generated anymore although reqired. We now call add_decl_expr introduced by the previous patch from finish_struct. The function is revised with a new argument to not set the TYPE_NAME for the type to the DECL_EXPR in this specific case. PR c/112488 gcc/c * c-decl.cc (add_decl_expr): Revise. (finish_struct): Create DECL_EXPR. * c-parser.cc (c_parser_struct_or_union_specifier): Call finish_struct with expression for VLA sizes. * c-tree.h (finish_struct): Add argument. gcc/testsuite * gcc.dg/pr112488-1.c: New test. * gcc.dg/pr112488-2.c: New test. * gcc.dg/pr112898.c: New test. * gcc.misc-tests/gcov-pr85350.c: Adapt.
next prev parent reply other threads:[~2023-12-11 22:20 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-12 9:05 [Bug c/112488] New: GCC: 14: internal compiler error: in make_ssa_name_fn, at tree-ssanames.cc:354 141242068 at smail dot nju.edu.cn 2023-11-12 19:22 ` [Bug ipa/112488] [14 Regression] ICE in make_ssa_name_fn with VLA inside type and inlining pinskia at gcc dot gnu.org 2023-11-12 19:25 ` pinskia at gcc dot gnu.org 2023-11-13 8:59 ` [Bug c/112488] " rguenth at gcc dot gnu.org 2023-11-13 18:29 ` pinskia at gcc dot gnu.org 2023-11-13 18:33 ` [Bug c/112488] [14 Regression] ICE in make_ssa_name_fn with VLA inside type and inlining since r14-1142 jakub at gcc dot gnu.org 2023-11-13 18:35 ` uecker at gcc dot gnu.org 2023-11-13 20:19 ` uecker at gcc dot gnu.org 2023-11-13 20:23 ` uecker at gcc dot gnu.org 2023-12-07 9:33 ` pinskia at gcc dot gnu.org 2023-12-07 22:19 ` muecker at gwdg dot de 2023-12-08 17:19 ` muecker at gwdg dot de 2023-12-11 22:20 ` cvs-commit at gcc dot gnu.org [this message] 2023-12-13 17:49 ` uecker 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-112488-4-ibZB0AKUZO@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).