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 middle-end/110055] [13 Regression] Dangling pointer warning inside std::vector on RISC-V
Date: Fri, 23 Jun 2023 10:30:01 +0000	[thread overview]
Message-ID: <bug-110055-4-I2dH6Vg13G@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-110055-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:b0856bb588c76e16a518b459a8c9a012dc2b4e21

commit r13-7467-gb0856bb588c76e16a518b459a8c9a012dc2b4e21
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Jun 5 08:56:53 2023 +0200

    middle-end/110055 - avoid CLOBBERing static variables

    The gimplifier can elide initialized constant automatic variables
    to static storage in which case TARGET_EXPR gimplification needs
    to avoid emitting a CLOBBER for them since their lifetime is no
    longer limited.  Failing to do so causes spurious dangling-pointer
    diagnostics on the added testcase for some targets.

            PR middle-end/110055
            * gimplify.cc (gimplify_target_expr): Do not emit
            CLOBBERs for variables which have static storage duration
            after gimplifying their initializers.

            * g++.dg/warn/Wdangling-pointer-pr110055.C: New testcase.

    (cherry picked from commit 84eec2916fa68cd2e2b3a2cf764f2ba595cce843)

  parent reply	other threads:[~2023-06-23 10:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-31 10:03 [Bug c++/110055] New: " spriteovo at gmail dot com
2023-05-31 10:05 ` [Bug c++/110055] " spriteovo at gmail dot com
2023-05-31 13:32 ` spriteovo at gmail dot com
2023-05-31 23:46 ` [Bug middle-end/110055] " pinskia at gcc dot gnu.org
2023-05-31 23:47 ` pinskia at gcc dot gnu.org
2023-06-01  0:07 ` pinskia at gcc dot gnu.org
2023-06-02  7:13 ` rguenth at gcc dot gnu.org
2023-06-02  7:25 ` rguenth at gcc dot gnu.org
2023-06-05 11:15 ` spriteovo at gmail dot com
2023-06-06  8:30 ` cvs-commit at gcc dot gnu.org
2023-06-06  8:41 ` [Bug middle-end/110055] [13 Regression] " rguenth at gcc dot gnu.org
2023-06-23 10:30 ` cvs-commit at gcc dot gnu.org [this message]
2023-06-23 10:30 ` rguenth 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-110055-4-I2dH6Vg13G@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: link
Be 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).