diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2018-04-26 01:09:27 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2018-04-26 01:09:27 +0000 |
commit | bc40f16691a29b2934a3410cc3dc867584d52acf (patch) | |
tree | c87ca06e3eb684dae3e35ac0611ff53198958357 /libsanitizer | |
parent | 3ce4730b76c20f7424cf820fddc99c083efb6e24 (diff) | |
download | gcc-bc40f16691a29b2934a3410cc3dc867584d52acf.tar.gz |
This appears to be present in compiler-rt upstream, but as part of more intrusive changes.
This appears to be present in compiler-rt upstream, but as part
of more intrusive changes. For gcc, the lack of this results in
a fatal warning (-Werror) at build-time.
* sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
&& _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
From-SVN: r259663
Diffstat (limited to 'libsanitizer')
-rw-r--r-- | libsanitizer/ChangeLog | 5 | ||||
-rw-r--r-- | libsanitizer/sanitizer_common/sanitizer_atomic_clang_other.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index df4954f72b0..acde79f62db 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,8 @@ +2018-04-26 Hans-Peter Nilsson <hp@axis.com> + + * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM + && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member. + 2018-04-24 H.J. Lu <hongjiu.lu@intel.com> * configure: Regenerated. diff --git a/libsanitizer/sanitizer_common/sanitizer_atomic_clang_other.h b/libsanitizer/sanitizer_common/sanitizer_atomic_clang_other.h index a0605bbbd82..59e9f645f68 100644 --- a/libsanitizer/sanitizer_common/sanitizer_atomic_clang_other.h +++ b/libsanitizer/sanitizer_common/sanitizer_atomic_clang_other.h @@ -35,7 +35,7 @@ static void __spin_unlock(volatile int *lock) { __sync_lock_release(lock); } static struct { int lock; char pad[32 - sizeof(int)]; -} __attribute__((aligned(32))) lock = {0}; +} __attribute__((aligned(32))) lock = {0, {0}}; template <class T> T __mips_sync_fetch_and_add(volatile T *ptr, T val) { |