public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/56098] [4.6/4.7/4.8 Regression] conditional write through volatile pointer produces unintended read
Date: Fri, 25 Jan 2013 20:04:00 -0000	[thread overview]
Message-ID: <bug-56098-4-TLJeaCGFVQ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-56098-4@http.gcc.gnu.org/bugzilla/>


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56098

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-25 20:04:01 UTC ---
Author: jakub
Date: Fri Jan 25 20:03:54 2013
New Revision: 195475

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195475
Log:
    PR tree-optimization/56098
    * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
    for stmts with volatile ops.
    (cond_store_replacement): Don't optimize if assign has volatile ops.
    (cond_if_else_store_replacement_1): Don't optimize if either
    then_assign or else_assign have volatile ops.
    (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
    volatile ops.

    * gcc.dg/pr56098-1.c: New test.
    * gcc.dg/pr56098-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr56098-1.c
    trunk/gcc/testsuite/gcc.dg/pr56098-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-phiopt.c


  parent reply	other threads:[~2013-01-25 20:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-24 18:22 [Bug c/56098] New: " werner at almesberger dot net
2013-01-25  8:43 ` [Bug middle-end/56098] " mikpe at it dot uu.se
2013-01-25 14:43 ` [Bug middle-end/56098] [4.6/4.7/4.8 Regression] " rguenth at gcc dot gnu.org
2013-01-25 15:35 ` jakub at gcc dot gnu.org
2013-01-25 20:04 ` jakub at gcc dot gnu.org [this message]
2013-01-25 20:06 ` [Bug middle-end/56098] [4.6/4.7 " jakub at gcc dot gnu.org
2013-01-25 22:46 ` werner at almesberger dot net
2013-01-26  2:10 ` werner at almesberger dot net
2013-02-01 14:17 ` jakub at gcc dot gnu.org
2013-02-01 14:38 ` [Bug middle-end/56098] [4.6 " jakub at gcc dot gnu.org
2013-02-27 19:47 ` pinskia at gcc dot gnu.org
2013-04-03 18:20 ` jakub 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-56098-4-TLJeaCGFVQ@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).