forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5dcbdcb
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 parent3f05a30 commit5dcbdcb
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 | |
---|---|---|---|
| |||
14886 | 14886 |
| |
14887 | 14887 |
| |
14888 | 14888 |
| |
| 14889 | + | |
| 14890 | + | |
| 14891 | + | |
14889 | 14892 |
| |
14890 | 14893 |
| |
14891 |
| - | |
| 14894 | + | |
14892 | 14895 |
| |
14893 | 14896 |
| |
14894 |
| - | |
| 14897 | + | |
14895 | 14898 |
| |
14896 | 14899 |
| |
14897 | 14900 |
| |
| |||
14900 | 14903 |
| |
14901 | 14904 |
| |
14902 | 14905 |
| |
14903 |
| - | |
| 14906 | + | |
14904 | 14907 |
| |
14905 | 14908 |
| |
14906 |
| - | |
| 14909 | + | |
14907 | 14910 |
| |
14908 |
| - | |
14909 |
| - | |
| 14911 | + | |
14910 | 14912 |
| |
14911 | 14913 |
| |
14912 | 14914 |
| |
| |||
14923 | 14925 |
| |
14924 | 14926 |
| |
14925 | 14927 |
| |
| 14928 | + | |
| 14929 | + | |
| 14930 | + | |
| 14931 | + | |
| 14932 | + | |
| 14933 | + | |
| 14934 | + | |
| 14935 | + | |
| 14936 | + | |
| 14937 | + | |
| 14938 | + | |
| 14939 | + | |
| 14940 | + | |
| 14941 | + | |
| 14942 | + | |
| 14943 | + | |
| 14944 | + | |
| 14945 | + | |
| 14946 | + | |
| 14947 | + | |
| 14948 | + | |
| 14949 | + | |
| 14950 | + | |
| 14951 | + | |
| 14952 | + | |
| 14953 | + | |
| 14954 | + | |
| 14955 | + | |
| 14956 | + | |
| 14957 | + | |
| 14958 | + | |
| 14959 | + | |
| 14960 | + | |
| 14961 | + | |
| 14962 | + | |
| 14963 | + | |
| 14964 | + | |
| 14965 | + | |
| 14966 | + | |
| 14967 | + | |
| 14968 | + | |
| 14969 | + | |
| 14970 | + | |
| 14971 | + | |
| 14972 | + | |
| 14973 | + | |
| 14974 | + | |
| 14975 | + | |
| 14976 | + | |
| 14977 | + | |
| 14978 | + | |
| 14979 | + | |
| 14980 | + | |
| 14981 | + | |
| 14982 | + | |
14926 | 14983 |
| |
14927 | 14984 |
| |
14928 | 14985 |
| |
14929 |
| - | |
| 14986 | + | |
14930 | 14987 |
| |
14931 | 14988 |
| |
14932 | 14989 |
| |
| |||
14961 | 15018 |
| |
14962 | 15019 |
| |
14963 | 15020 |
| |
| 15021 | + | |
14964 | 15022 |
| |
14965 | 15023 |
| |
14966 | 15024 |
| |
|
0 commit comments
Comments
(0)