asking for __attribute__((aligned()) clarification
Paul Koning
paulkoning@comcast.net
Wed Aug 21 16:50:00 GMT 2019
> On Aug 21, 2019, at 10:57 AM, Alexander Monakov <amonakov@ispras.ru> wrote:
>
> On Wed, 21 Aug 2019, Paul Koning wrote:
>
>> I agree, but if the new approach generates a warning for code that was written
>> to the old rules, that would be unfortunate.
>
> FWIW I don't know which GCC versions accepted 'packed' on a scalar type.
That wasn't what I meant; I was talking about the packed and aligned attributes on struct members. I thought you were saying that ((packed,aligned(2))) is now a warning. That doesn't appear to be the case, though; it's accepted without complaint as it always was.
paul
More information about the Gcc
mailing list