Commit bc40f166 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

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
parent 3ce4730b
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.
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment