Add "memory" to the clobber list for membars.

Submitted by:	tmm
This commit is contained in:
Jake Burkholder 2001-12-29 06:51:50 +00:00
parent 7bb428295f
commit f664fe9075

View File

@ -131,7 +131,7 @@ STNC_GEN(u_long, stxa);
#define stxa(va, asi, val) ST_GENERIC(va, asi, val, stxa)
#define membar(mask) do { \
__asm __volatile("membar %0" : : "n" (mask)); \
__asm __volatile("membar %0" : : "n" (mask) : "memory"); \
} while (0)
#define rd(name) ({ \