public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/52080] Stores to bitfields introduce a store-data-race on adjacent data
Date: Wed, 01 Feb 2012 10:23:00 -0000	[thread overview]
Message-ID: <bug-52080-4-Xq8G9ylciX@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52080-4@http.gcc.gnu.org/bugzilla/>

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|ia64-*-linux                |ia64-*-linux,
                   |                            |sparc64-*-linux
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-01 10:22:51 UTC ---
SPARC64 is also affected.

;; ptr_1(D)->full = 1;

(insn 6 5 7 (set (reg:DI 110)
        (mem/j:DI (plus:DI (reg/v/f:DI 109 [ ptr ])
                (const_int 8 [0x8])) [0+8 S8 A64])) t.c:10 -1
     (nil))

(insn 7 6 8 (set (reg:DI 112)
        (const_int 2147483648 [0x80000000])) t.c:10 -1
     (nil))

(insn 8 7 9 (set (reg:DI 111)
        (ior:DI (reg:DI 110)
            (reg:DI 112))) t.c:10 -1
     (nil))

(insn 9 8 0 (set (mem/j:DI (plus:DI (reg/v/f:DI 109 [ ptr ])
                (const_int 8 [0x8])) [0+8 S8 A64])
        (reg:DI 111)) t.c:10 -1
     (nil))


wrong:
        ldx     [%o0+8], %g2
        sethi   %hi(2147483648), %g1
        or      %g2, %g1, %g1
        jmp     %o7+8
         stx    %g1, [%o0+8]


At least IA64 also can do 4-byte loads/stores (but not sure the HW
wouldn't re-introduce the data race).


  reply	other threads:[~2012-02-01 10:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-01 10:07 [Bug target/52080] New: " rguenth at gcc dot gnu.org
2012-02-01 10:23 ` rguenth at gcc dot gnu.org [this message]
2012-02-01 10:25 ` [Bug target/52080] " rguenth at gcc dot gnu.org
2012-02-01 10:39 ` rguenth at gcc dot gnu.org
2012-02-01 11:13 ` rguenth at gcc dot gnu.org
2012-02-01 17:12 ` ebotcazou at gcc dot gnu.org
2012-02-01 17:45 ` ebotcazou at gcc dot gnu.org
2012-02-01 17:50 ` matz at gcc dot gnu.org
2012-02-01 18:53 ` bergner at gcc dot gnu.org
2012-02-02 11:01 ` gcc-bugs at tesarici dot cz
2012-02-02 11:11 ` rguenth at gcc dot gnu.org
2012-02-02 12:40 ` gcc-bugs at tesarici dot cz
2012-02-21 12:04 ` rguenth at gcc dot gnu.org
2012-03-14 11:00 ` rguenth at gcc dot gnu.org
2012-03-14 11:01 ` rguenth at gcc dot gnu.org
2012-06-04  8:44 ` rguenth at gcc dot gnu.org
2013-02-19 20:37 ` LpSolit at netscape dot net
2014-02-16 13:17 ` jackie.rosen at hushmail dot com

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-52080-4-Xq8G9ylciX@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).