forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8557a9f
committed
Mark x86's memory barrier inline assembly as clobbering the cpu flags.
x86's memory barrier assembly was marked as clobbering "memory" butnot "cc" even though 'addl' sets various flags. As it turns out gcc onx86 implicitly assumes "cc" on every inline assembler statement, soit's not a bug. But as that's poorly documented and might get copiedto architectures or compilers where that's not the case, it seemsbetter to be precise.Discussion: 20140919100016.GH4277@alap3.anarazel.deTo keep the code common, backpatch to 9.2 where explicit memorybarriers were introduced.1 parentc5d11eb commit8557a9f
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 |
| - | |
| 73 | + | |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 |
| - | |
| 87 | + | |
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
|
0 commit comments
Comments
(0)