forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2082b37
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 parenta063d84 commit2082b37
2 files changed
+105
-15
lines changedLines changed: 40 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
| 111 | + | |
| 112 | + | |
| 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 |
| - | |
| 127 | + | |
125 | 128 |
| |
126 |
| - | |
127 |
| - | |
| 129 | + | |
128 | 130 |
| |
129 | 131 |
| |
130 | 132 |
| |
131 | 133 |
| |
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 | + | |
| 164 | + | |
| 165 | + | |
134 | 166 |
| |
135 | 167 |
| |
136 | 168 |
| |
|
Lines changed: 65 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14996 | 14996 |
| |
14997 | 14997 |
| |
14998 | 14998 |
| |
| 14999 | + | |
| 15000 | + | |
| 15001 | + | |
14999 | 15002 |
| |
15000 | 15003 |
| |
15001 |
| - | |
| 15004 | + | |
15002 | 15005 |
| |
15003 | 15006 |
| |
15004 |
| - | |
| 15007 | + | |
15005 | 15008 |
| |
15006 | 15009 |
| |
15007 | 15010 |
| |
| |||
15010 | 15013 |
| |
15011 | 15014 |
| |
15012 | 15015 |
| |
15013 |
| - | |
| 15016 | + | |
15014 | 15017 |
| |
15015 | 15018 |
| |
15016 |
| - | |
| 15019 | + | |
15017 | 15020 |
| |
15018 |
| - | |
15019 |
| - | |
| 15021 | + | |
15020 | 15022 |
| |
15021 | 15023 |
| |
15022 | 15024 |
| |
| |||
15033 | 15035 |
| |
15034 | 15036 |
| |
15035 | 15037 |
| |
| 15038 | + | |
| 15039 | + | |
| 15040 | + | |
| 15041 | + | |
| 15042 | + | |
| 15043 | + | |
| 15044 | + | |
| 15045 | + | |
| 15046 | + | |
| 15047 | + | |
| 15048 | + | |
| 15049 | + | |
| 15050 | + | |
| 15051 | + | |
| 15052 | + | |
| 15053 | + | |
| 15054 | + | |
| 15055 | + | |
| 15056 | + | |
| 15057 | + | |
| 15058 | + | |
| 15059 | + | |
| 15060 | + | |
| 15061 | + | |
| 15062 | + | |
| 15063 | + | |
| 15064 | + | |
| 15065 | + | |
| 15066 | + | |
| 15067 | + | |
| 15068 | + | |
| 15069 | + | |
| 15070 | + | |
| 15071 | + | |
| 15072 | + | |
| 15073 | + | |
| 15074 | + | |
| 15075 | + | |
| 15076 | + | |
| 15077 | + | |
| 15078 | + | |
| 15079 | + | |
| 15080 | + | |
| 15081 | + | |
| 15082 | + | |
| 15083 | + | |
| 15084 | + | |
| 15085 | + | |
| 15086 | + | |
| 15087 | + | |
| 15088 | + | |
| 15089 | + | |
| 15090 | + | |
| 15091 | + | |
| 15092 | + | |
15036 | 15093 |
| |
15037 | 15094 |
| |
15038 | 15095 |
| |
15039 |
| - | |
| 15096 | + | |
15040 | 15097 |
| |
15041 | 15098 |
| |
15042 | 15099 |
| |
| |||
15071 | 15128 |
| |
15072 | 15129 |
| |
15073 | 15130 |
| |
| 15131 | + | |
15074 | 15132 |
| |
15075 | 15133 |
| |
15076 | 15134 |
| |
|
0 commit comments
Comments
(0)