forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite0d4123
committed
Suppress warning about stack_base_ptr with late-model GCC.
GCC 12 complains that set_stack_base is storing the address ofa local variable in a long-lived pointer. This is an entirelyreasonable warning (indeed, it just helped us find a bug);but that behavior is intentional here. We can work around itby using __builtin_frame_address(0) instead of a specific localvariable; that produces an address a dozen or so bytes different,in my testing, but we don't care about such a small difference.Maybe someday a compiler lacking that function will start to issuea similar warning, but we'll worry about that when it happens.Patch by me, per a suggestion from Andres Freund. Back-patch tov12, which is as far back as the patch will go without some pain.(Recently-established project policy would permit a back-patch asfar as 9.2, but I'm disinclined to expend the work until GCC 12is much more widespread.)Discussion:https://postgr.es/m/3773792.1645141467@sss.pgh.pa.us1 parentaf2d484 commite0d4123
File tree
7 files changed
+88
-2
lines changed- config
- src
- backend
- postmaster
- tcop
- utils/init
- include
7 files changed
+88
-2
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
396 | 396 |
| |
397 | 397 |
| |
398 | 398 |
| |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
399 | 421 |
| |
400 | 422 |
| |
401 | 423 |
| |
|
Lines changed: 40 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15763 | 15763 |
| |
15764 | 15764 |
| |
15765 | 15765 |
| |
| 15766 | + | |
| 15767 | + | |
| 15768 | + | |
| 15769 | + | |
| 15770 | + | |
| 15771 | + | |
| 15772 | + | |
| 15773 | + | |
| 15774 | + | |
| 15775 | + | |
| 15776 | + | |
| 15777 | + | |
| 15778 | + | |
| 15779 | + | |
| 15780 | + | |
| 15781 | + | |
| 15782 | + | |
| 15783 | + | |
| 15784 | + | |
| 15785 | + | |
| 15786 | + | |
| 15787 | + | |
| 15788 | + | |
| 15789 | + | |
| 15790 | + | |
| 15791 | + | |
| 15792 | + | |
| 15793 | + | |
| 15794 | + | |
| 15795 | + | |
| 15796 | + | |
| 15797 | + | |
| 15798 | + | |
| 15799 | + | |
| 15800 | + | |
| 15801 | + | |
| 15802 | + | |
| 15803 | + | |
| 15804 | + | |
| 15805 | + | |
15766 | 15806 |
| |
15767 | 15807 |
| |
15768 | 15808 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1724 | 1724 |
| |
1725 | 1725 |
| |
1726 | 1726 |
| |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
1727 | 1730 |
| |
1728 | 1731 |
| |
1729 | 1732 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1207 | 1207 |
| |
1208 | 1208 |
| |
1209 | 1209 |
| |
1210 |
| - | |
| 1210 | + | |
1211 | 1211 |
| |
1212 | 1212 |
| |
1213 | 1213 |
| |
|
Lines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3210 | 3210 |
| |
3211 | 3211 |
| |
3212 | 3212 |
| |
| 3213 | + | |
3213 | 3214 |
| |
| 3215 | + | |
3214 | 3216 |
| |
3215 | 3217 |
| |
3216 | 3218 |
| |
| |||
3220 | 3222 |
| |
3221 | 3223 |
| |
3222 | 3224 |
| |
3223 |
| - | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
3224 | 3233 |
| |
| 3234 | + | |
3225 | 3235 |
| |
3226 | 3236 |
| |
3227 | 3237 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
274 | 274 |
| |
275 | 275 |
| |
276 | 276 |
| |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
277 | 285 |
| |
278 | 286 |
| |
279 | 287 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
757 | 757 |
| |
758 | 758 |
| |
759 | 759 |
| |
| 760 | + | |
| 761 | + | |
| 762 | + | |
760 | 763 |
| |
761 | 764 |
| |
762 | 765 |
| |
|
0 commit comments
Comments
(0)