]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/i386/x86-tune.def
re PR target/91719 (gcc compiles seq_cst store on x86-64 differently from clang/icc)
authorUros Bizjak <ubizjak@gmail.com>
Mon, 16 Sep 2019 18:37:28 +0000 (20:37 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 16 Sep 2019 18:37:28 +0000 (20:37 +0200)
commit48d552e5cd56ff3212d050efca3d5f34778af79f
tree03311cf5d034385e71ef869576b11ea1288ebe40
parente4ab9e060be99646f066264d6f23320825a46054
re PR target/91719 (gcc compiles seq_cst store on x86-64 differently from clang/icc)

PR target/91719
* config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
* config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
* config/i386/sync.md (atomic_store<mode>): emit XCHG for
TARGET_USE_XCHG_FOR_ATOMIC_STORE.

From-SVN: r275754
gcc/ChangeLog
gcc/config/i386/i386.h
gcc/config/i386/sync.md
gcc/config/i386/x86-tune.def