This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make max_align_t respect _Float128 [version 2]
On Tue, 6 Sep 2016, Paul Eggert wrote:
> One way to correct the code is to increase malloc's argument up to a multiple
> of alignof(max_align_t). (One cannot portably use alignof(struct s) due to
Sounds like a defect in C11 to me - none of the examples of flexible array
members anticipate needing to add to the size to allow for tail padding
with unknown alignment requirements.
> C11's prohibition of using alignof on incomplete types.) This is why
Structures with flexible array members are not incomplete types.
--
Joseph S. Myers
joseph@codesourcery.com