forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit89779bf
committed
Fix a few problems in barrier.h.
On HPPA, implement pg_memory_barrier() as pg_compiler_barrier(), whichshould be correct since this arch doesn't do memory access reordering,and is anyway better than the completely-nonfunctional-on-this-archdummy_spinlock code. (But note this patch only fixes things for gcc,not for builds with HP's compiler.)Also, fix incorrect default definition of pg_memory_barrier as a macrorequiring an argument.Also, fix incorrect spelling of "#elif" as "#else if" in icc code path(spotted by pgindent).This doesn't come close to fixing all of the functional and stylisticdeficiencies in barrier.h, but at least it un-breaks my personal build.Now that we're actually using barriers in the code, this file is goingto need some serious attention.1 parent107cbc9 commit89779bf
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
| |||
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 |
| |
123 | 127 |
| |
124 | 128 |
| |
| |||
153 | 157 |
| |
154 | 158 |
| |
155 | 159 |
| |
156 |
| - | |
| 160 | + | |
157 | 161 |
| |
158 | 162 |
| |
159 | 163 |
| |
|
0 commit comments
Comments
(0)