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 tree-optimization/108522] [12 Regression] ICE in tree-object-size when struct has VLA Date: Tue, 07 Feb 2023 20:03:40 +0000 [thread overview] Message-ID: <bug-108522-4-bf1K21X5q9@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-108522-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108522 --- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Siddhesh Poyarekar <siddhesh@gcc.gnu.org>: https://gcc.gnu.org/g:4526562a305b3bfc18485a2aa017500aa22aa14b commit r12-9112-g4526562a305b3bfc18485a2aa017500aa22aa14b Author: Siddhesh Poyarekar <siddhesh@gotplt.org> Date: Tue Jan 24 19:47:05 2023 -0500 tree-optimization/108522 Use COMPONENT_REF offset when available Use the offset in TREE_OPERAND(component_ref, 2) when available instead of DECL_FIELD_OFFSET when trying to compute offset for a COMPONENT_REF. Co-authored-by: Jakub Jelinek <jakub@redhat.com> gcc/ChangeLog: PR tree-optimization/108522 * tree-object-size.cc (compute_object_offset): Use TREE_OPERAND(ref, 2) for COMPONENT_REF when available. gcc/testsuite/ChangeLog: PR tree-optimization/108522 * gcc.dg/builtin-dynamic-object-size-0.c (test_dynarray_struct_member): New test. (main): Call it. Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org> (cherry picked from commit b851ee9fdf0f3023635f0cb1f7c607b2d6801053)
next prev parent reply other threads:[~2023-02-07 20:03 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-24 16:52 [Bug tree-optimization/108522] New: [Regression 12/13] " siddhesh at gcc dot gnu.org 2023-01-24 16:53 ` [Bug tree-optimization/108522] " siddhesh at gcc dot gnu.org 2023-01-24 18:27 ` [Bug tree-optimization/108522] [12/13 Regression] " jakub at gcc dot gnu.org 2023-01-24 18:28 ` jakub at gcc dot gnu.org 2023-01-25 0:47 ` cvs-commit at gcc dot gnu.org 2023-01-26 12:21 ` cvs-commit at gcc dot gnu.org 2023-02-07 20:03 ` cvs-commit at gcc dot gnu.org [this message] 2023-02-07 20:03 ` [Bug tree-optimization/108522] [12 " cvs-commit at gcc dot gnu.org 2023-02-07 20:05 ` siddhesh 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-108522-4-bf1K21X5q9@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).