forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit46b738f
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 parent0dc0284 commit46b738f
File tree
8 files changed
+86
-8
lines changed- config
- src
- backend
- postmaster
- tcop
- utils/init
- include
- tools/msvc
8 files changed
+86
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
384 | 406 | | |
385 | 407 | | |
386 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15509 | 15509 | | |
15510 | 15510 | | |
15511 | 15511 | | |
| 15512 | + | |
| 15513 | + | |
| 15514 | + | |
| 15515 | + | |
| 15516 | + | |
| 15517 | + | |
| 15518 | + | |
| 15519 | + | |
| 15520 | + | |
| 15521 | + | |
| 15522 | + | |
| 15523 | + | |
| 15524 | + | |
| 15525 | + | |
| 15526 | + | |
| 15527 | + | |
| 15528 | + | |
| 15529 | + | |
| 15530 | + | |
| 15531 | + | |
| 15532 | + | |
| 15533 | + | |
| 15534 | + | |
| 15535 | + | |
| 15536 | + | |
| 15537 | + | |
| 15538 | + | |
| 15539 | + | |
| 15540 | + | |
| 15541 | + | |
| 15542 | + | |
| 15543 | + | |
| 15544 | + | |
| 15545 | + | |
| 15546 | + | |
| 15547 | + | |
| 15548 | + | |
| 15549 | + | |
| 15550 | + | |
| 15551 | + | |
15512 | 15552 | | |
15513 | 15553 | | |
15514 | 15554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1713 | 1713 | | |
1714 | 1714 | | |
1715 | 1715 | | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
1716 | 1719 | | |
1717 | 1720 | | |
1718 | 1721 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1028 | 1028 | | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | | - | |
| 1031 | + | |
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3280 | 3280 | | |
3281 | 3281 | | |
3282 | 3282 | | |
| 3283 | + | |
3283 | 3284 | | |
| 3285 | + | |
3284 | 3286 | | |
3285 | 3287 | | |
3286 | 3288 | | |
| |||
3290 | 3292 | | |
3291 | 3293 | | |
3292 | 3294 | | |
3293 | | - | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
3294 | 3303 | | |
| 3304 | + | |
3295 | 3305 | | |
3296 | 3306 | | |
3297 | 3307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
101 | 100 | | |
102 | | - | |
| 101 | + | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
710 | 713 | | |
711 | 714 | | |
712 | 715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| |||
0 commit comments
Comments
(0)