- Notifications
You must be signed in to change notification settings - Fork28
Commit434e6e1
committed
Improve implementation of pg_attribute_always_inline.
Avoid compiler warnings on MSVC (which doesn't want to see both__forceinline and inline) and ancient GCC (which doesn't have__attribute__((always_inline))).Don't force inline-ing when building at -O0, as the programmer is probablyhoping for exact source-to-object-line correspondence in that case.(For the moment this only works for GCC; maybe we can extend it later.)Make pg_attribute_always_inline be syntactically a drop-in replacementfor inline, rather than an additional wart.And improve the comments.Thomas Munro and Michail Nikolaev, small tweaks by meDiscussion:https://postgr.es/m/32278.1514863068@sss.pgh.pa.usDiscussion:https://postgr.es/m/CANtu0oiYp74brgntKOxgg1FK5+t8uQ05guSiFU6FYz_5KUhr6Q@mail.gmail.com1 parente0a0dec commit434e6e1
2 files changed
+13
-7
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
164 |
| - | |
165 |
| - | |
| 164 | + | |
166 | 165 |
| |
167 | 166 |
| |
168 | 167 |
| |
|
Lines changed: 12 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 |
| - | |
150 |
| - | |
151 |
| - | |
152 |
| - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
153 | 158 |
| |
| 159 | + | |
154 | 160 |
| |
155 | 161 |
| |
156 |
| - | |
| 162 | + | |
| 163 | + | |
157 | 164 |
| |
158 | 165 |
| |
159 | 166 |
| |
|
0 commit comments
Comments
(0)