- Notifications
You must be signed in to change notification settings - Fork28
Commitdb0558c
committed
Use a more bulletproof test for whether finite() and isinf() are present.
It seems that recent gcc versions can optimize away calls to these functionseven when the functions do not exist on the platform, resulting in a boguspositive result. Avoid this by using a non-constant argument and ensuringthat the function result is not simply discarded. Per report fromFrançois Laupretre.1 parent9484e14 commitdb0558c
2 files changed
+18
-10
lines changedLines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14202 | 14202 |
| |
14203 | 14203 |
| |
14204 | 14204 |
| |
14205 |
| - | |
14206 | 14205 |
| |
14207 | 14206 |
| |
14208 | 14207 |
| |
| |||
14214 | 14213 |
| |
14215 | 14214 |
| |
14216 | 14215 |
| |
| 14216 | + | |
14217 | 14217 |
| |
| 14218 | + | |
14218 | 14219 |
| |
14219 | 14220 |
| |
14220 | 14221 |
| |
14221 | 14222 |
| |
14222 |
| - | |
| 14223 | + | |
14223 | 14224 |
| |
14224 | 14225 |
| |
14225 | 14226 |
| |
| |||
15102 | 15103 |
| |
15103 | 15104 |
| |
15104 | 15105 |
| |
| 15106 | + | |
15105 | 15107 |
| |
| 15108 | + | |
| 15109 | + | |
15106 | 15110 |
| |
15107 | 15111 |
| |
15108 | 15112 |
| |
15109 |
| - | |
| 15113 | + | |
15110 | 15114 |
| |
15111 | 15115 |
| |
15112 | 15116 |
| |
|
Lines changed: 11 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
892 | 892 |
| |
893 | 893 |
| |
894 | 894 |
| |
895 |
| - | |
| 895 | + | |
896 | 896 |
| |
897 |
| - | |
898 |
| - | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
899 | 900 |
| |
900 |
| - | |
| 901 | + | |
901 | 902 |
| |
902 | 903 |
| |
903 | 904 |
| |
| |||
963 | 964 |
| |
964 | 965 |
| |
965 | 966 |
| |
966 |
| - | |
967 |
| - | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
968 | 972 |
| |
969 | 973 |
| |
970 | 974 |
| |
|
0 commit comments
Comments
(0)