aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/expr.cc
diff options
context:
space:
mode:
authorHongyu Wang <hongyu.wang@intel.com>2022-04-13 14:51:36 +0800
committerHongyu Wang <hongyu.wang@intel.com>2022-04-13 16:17:27 +0800
commit522f25e90c781d284f8347a04940db8b41c42fd5 (patch)
tree3ae7f61f4cb464e533e678d0a3a0f68517d1681c /gcc/d/expr.cc
parent41f8f8b8a4ffcf28961cdc077fd7f0770f4bb7cc (diff)
downloadgcc-522f25e90c781d284f8347a04940db8b41c42fd5.zip
gcc-522f25e90c781d284f8347a04940db8b41c42fd5.tar.gz
gcc-522f25e90c781d284f8347a04940db8b41c42fd5.tar.bz2
i386: Fix infinite loop under -mrelax-cmpxchg-loop [PR 103069]
For -mrelax-cmpxchg-loop which relaxes atomic_fetch_<logic> loops, there is a missing set to %eax when compare fails, which would result in infinite loop in some benchmark. Add set to %eax to avoid it. gcc/ChangeLog: PR target/103069 * config/i386/i386-expand.cc (ix86_expand_cmpxchg_loop): Add missing set to target_val at pause label.
Diffstat (limited to 'gcc/d/expr.cc')
0 files changed, 0 insertions, 0 deletions