- Notifications
You must be signed in to change notification settings - Fork5.3k
Commitd4c0f91
committed
C11 alignas instead of unions -- extended alignments
This replaces some uses of pg_attribute_aligned() with the standardalignas() for cases where extended alignment (larger than max_align_t)is required.This patch stipulates that all supported compilers must supportalignments up to PG_IO_ALIGN_SIZE, but that seems pretty likely.We can then also desupport the case where direct I/O is disabledbecause pg_attribute_aligned is not supported.Reviewed-by: Chao Li <li.evan.chao@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/46f05236-d4d4-4b4e-84d4-faa500f14691%40eisentraut.org1 parent4b203d4 commitd4c0f91
2 files changed
+6
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | | - | |
| 1135 | + | |
1136 | 1136 | | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
| 1137 | + | |
1143 | 1138 | | |
1144 | 1139 | | |
1145 | 1140 | | |
1146 | | - | |
| 1141 | + | |
1147 | 1142 | | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
| 1143 | + | |
1154 | 1144 | | |
1155 | 1145 | | |
1156 | 1146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
90 | 89 | | |
91 | | - | |
| 90 | + | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
0 commit comments
Comments
(0)