forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe83a3f
committed
Use -fwrapv in CFLAGS if we are using a version of gcc that accepts this flag.
This prevents compiler optimizations that assume overflow won't occur, whichbreaks numerous overflow tests that we need to have working. It is knownthat gcc 4.3 causes problems and possible that 4.1 does. Per my proposalof some time ago and a recent report from Kris Jurka.Backpatch as far as 8.0, which is as far as the patch conveniently goes.7.x was pretty short of overflow tests anyway, so it may not matter there,even assuming that anyone cares whether 7.x builds on recent gcc.1 parentf0828b2 commitfe83a3f
2 files changed
+53
-1
lines changedLines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3563 | 3563 |
| |
3564 | 3564 |
| |
3565 | 3565 |
| |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
| 3572 | + | |
| 3573 | + | |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
| 3578 | + | |
| 3579 | + | |
| 3580 | + | |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
| 3592 | + | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
| 3605 | + | |
| 3606 | + | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
| 3610 | + | |
| 3611 | + | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
3566 | 3616 |
| |
3567 | 3617 |
| |
3568 | 3618 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
284 | 284 |
| |
285 | 285 |
| |
286 | 286 |
| |
| 287 | + | |
| 288 | + | |
287 | 289 |
| |
288 | 290 |
| |
289 | 291 |
| |
|
0 commit comments
Comments
(0)