forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd0a368c
committed
Install a workaround for a longstanding gcc bug that allows SIGFPE traps
to occur for division by zero, even though the code is carefully avoidingthat. All available evidence is that the only functions affected areint24div, int48div, and int28div, so patch just those three functions toinclude a "return" after the ereport() call.Backpatch to 8.4 so that the fix can be tested in production builds.For older branches our recommendation will continue to be to use -O1on affected platforms (which are mostly non-mainstream anyway).1 parentfc19373 commitd0a368c
2 files changed
+17
-2
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
950 | 950 |
| |
951 | 951 |
| |
952 | 952 |
| |
| 953 | + | |
953 | 954 |
| |
954 | 955 |
| |
955 | 956 |
| |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
956 | 961 |
| |
957 | 962 |
| |
958 | 963 |
| |
|
Lines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
919 | 919 |
| |
920 | 920 |
| |
921 | 921 |
| |
| 922 | + | |
922 | 923 |
| |
923 | 924 |
| |
924 | 925 |
| |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
925 | 930 |
| |
926 | 931 |
| |
927 | 932 |
| |
| |||
1098 | 1103 |
| |
1099 | 1104 |
| |
1100 | 1105 |
| |
| 1106 | + | |
1101 | 1107 |
| |
1102 | 1108 |
| |
1103 | 1109 |
| |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1104 | 1114 |
| |
1105 | 1115 |
| |
1106 | 1116 |
| |
|
0 commit comments
Comments
(0)