Re: [Ada] Pragma Atomic wrongly rejected on composite component

2017-09-11 Thread Eric Botcazou
> That regresses on gnat.dg/specs/atomic1.ads for aarch64/-mabi=ilp32, > missing the error on line 13. The missing error on line 9 is > preexisting. That's sort of expected, since the point of the patch is to make the 2 situations equivalent wrt atomicity. Clearly the test is not portable and

Re: [Ada] Pragma Atomic wrongly rejected on composite component

2017-09-11 Thread Andreas Schwab
On Sep 09 2017, Eric Botcazou wrote: > * gcc-interface/decl.c (promote_object_alignment): New function taken > from... > (gnat_to_gnu_entity) : ...here. Invoke it. > (gnat_to_gnu_field): If the field is Atomic or VFA, invoke it and > create a padding type on success