forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commit456cab2
committed
Extend configure's __int128 test to check for a known gcc bug.
On Sparc64, use of __attribute__(aligned(8)) with __int128 causes faultycode generation in gcc versions at least through 5.5.0. We can work aroundthat by disabling use of __int128, so teach configure to test for the bug.This solution doesn't fix things for the case of cross-compiling with abuggy compiler; to support that nicely, we'd need to add a manual disableswitch. Unless more such cases turn up, it doesn't seem worth the work.Affected users could always edit pg_config.h manually.In passing, fix some typos in the existing configure test for __int128.They're harmless because we only compile that code not run it, butthey're still confusing for anyone looking at it closely.This is needed in support of commit7518049, so back-patch to 9.5as that was.Marina Polyakova, Victor Wagner, Tom LaneDiscussion:https://postgr.es/m/0d3a9fa264cebe1cb9966f37b7c06e86@postgrespro.ru1 parent4a81c02 commit456cab2
2 files changed
+105
-15
lines changedLines changed: 40 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 |
| |
110 | 113 |
| |
111 |
| - | |
| 114 | + | |
112 | 115 |
| |
113 | 116 |
| |
114 |
| - | |
| 117 | + | |
115 | 118 |
| |
116 | 119 |
| |
117 | 120 |
| |
118 | 121 |
| |
119 |
| - | |
| 122 | + | |
120 | 123 |
| |
121 | 124 |
| |
122 |
| - | |
| 125 | + | |
123 | 126 |
| |
124 |
| - | |
125 |
| - | |
| 127 | + | |
126 | 128 |
| |
127 | 129 |
| |
128 | 130 |
| |
129 | 131 |
| |
130 |
| - | |
131 |
| - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
132 | 164 |
| |
133 | 165 |
| |
134 | 166 |
| |
|
Lines changed: 65 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14355 | 14355 |
| |
14356 | 14356 |
| |
14357 | 14357 |
| |
| 14358 | + | |
| 14359 | + | |
| 14360 | + | |
14358 | 14361 |
| |
14359 | 14362 |
| |
14360 |
| - | |
| 14363 | + | |
14361 | 14364 |
| |
14362 | 14365 |
| |
14363 |
| - | |
| 14366 | + | |
14364 | 14367 |
| |
14365 | 14368 |
| |
14366 | 14369 |
| |
| |||
14369 | 14372 |
| |
14370 | 14373 |
| |
14371 | 14374 |
| |
14372 |
| - | |
| 14375 | + | |
14373 | 14376 |
| |
14374 | 14377 |
| |
14375 |
| - | |
| 14378 | + | |
14376 | 14379 |
| |
14377 |
| - | |
14378 |
| - | |
| 14380 | + | |
14379 | 14381 |
| |
14380 | 14382 |
| |
14381 | 14383 |
| |
| |||
14392 | 14394 |
| |
14393 | 14395 |
| |
14394 | 14396 |
| |
| 14397 | + | |
| 14398 | + | |
| 14399 | + | |
| 14400 | + | |
| 14401 | + | |
| 14402 | + | |
| 14403 | + | |
| 14404 | + | |
| 14405 | + | |
| 14406 | + | |
| 14407 | + | |
| 14408 | + | |
| 14409 | + | |
| 14410 | + | |
| 14411 | + | |
| 14412 | + | |
| 14413 | + | |
| 14414 | + | |
| 14415 | + | |
| 14416 | + | |
| 14417 | + | |
| 14418 | + | |
| 14419 | + | |
| 14420 | + | |
| 14421 | + | |
| 14422 | + | |
| 14423 | + | |
| 14424 | + | |
| 14425 | + | |
| 14426 | + | |
| 14427 | + | |
| 14428 | + | |
| 14429 | + | |
| 14430 | + | |
| 14431 | + | |
| 14432 | + | |
| 14433 | + | |
| 14434 | + | |
| 14435 | + | |
| 14436 | + | |
| 14437 | + | |
| 14438 | + | |
| 14439 | + | |
| 14440 | + | |
| 14441 | + | |
| 14442 | + | |
| 14443 | + | |
| 14444 | + | |
| 14445 | + | |
| 14446 | + | |
| 14447 | + | |
| 14448 | + | |
| 14449 | + | |
| 14450 | + | |
| 14451 | + | |
14395 | 14452 |
| |
14396 | 14453 |
| |
14397 | 14454 |
| |
14398 |
| - | |
| 14455 | + | |
14399 | 14456 |
| |
14400 | 14457 |
| |
14401 | 14458 |
| |
| |||
14430 | 14487 |
| |
14431 | 14488 |
| |
14432 | 14489 |
| |
| 14490 | + | |
14433 | 14491 |
| |
14434 | 14492 |
| |
14435 | 14493 |
| |
|
0 commit comments
Comments
(0)