forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc04d35f
committed
Try to detect runtime unavailability of __builtin_mul_overflow(int64).
On some systems the results of 64 bit __builtin_mul_overflow()operations can be computed at compile time, but not at runtime. Theknown cases are arm buildfar animals using clang where the runtimeoperation is implemented in a unavailable function.Try to avoid compile-time computation by using volatile arguments to__builtin_mul_overflow(). In that case we hopefully will get a linkerror when unavailable, similar to what buildfarm animals dangomushiand gull are reporting.Author: Andres FreundDiscussion:https://postgr.es/m/20171213213754.pydkyjs6bt2hvsdb@alap3.anarazel.de1 parentc757a3d commitc04d35f
2 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
315 | 317 | | |
316 | 318 | | |
317 | 319 | | |
318 | | - | |
319 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
320 | 324 | | |
321 | 325 | | |
322 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14488 | 14488 | | |
14489 | 14489 | | |
14490 | 14490 | | |
| 14491 | + | |
| 14492 | + | |
14491 | 14493 | | |
14492 | | - | |
| 14494 | + | |
14493 | 14495 | | |
14494 | 14496 | | |
14495 | 14497 | | |
| |||
0 commit comments
Comments
(0)