aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execMain.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2014-09-19 17:04:00 +0200
committerAndres Freund <andres@anarazel.de>2014-09-19 17:04:00 +0200
commite5603a2f35baa0bc9d61b16373383fdd37e49509 (patch)
tree6a69bb31da91fb6f4c91874cf491ed674b65d1ff /src/backend/executor/execMain.c
parentafaefa1b31ba900bdc6987a752483e1580356e48 (diff)
downloadpostgresql-e5603a2f35baa0bc9d61b16373383fdd37e49509.tar.gz
postgresql-e5603a2f35baa0bc9d61b16373383fdd37e49509.zip
Mark x86's memory barrier inline assembly as clobbering the cpu flags.
x86's memory barrier assembly was marked as clobbering "memory" but not "cc" even though 'addl' sets various flags. As it turns out gcc on x86 implicitly assumes "cc" on every inline assembler statement, so it's not a bug. But as that's poorly documented and might get copied to architectures or compilers where that's not the case, it seems better to be precise. Discussion: 20140919100016.GH4277@alap3.anarazel.de To keep the code common, backpatch to 9.2 where explicit memory barriers were introduced.
Diffstat (limited to 'src/backend/executor/execMain.c')
0 files changed, 0 insertions, 0 deletions