]> gcc.gnu.org Git - gcc.git/commit
Fix build failure of Ada runtime for Aarch64 targets
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 14 Apr 2023 18:14:07 +0000 (20:14 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 14 Apr 2023 18:17:55 +0000 (20:17 +0200)
commit94a21e008c4778e446321b1355f61abc75a076be
treef6a5e7c0b509f7414ebe35b904fa82db04a4c92d
parent0d94c6df183375caaa7f672e288a2094ca813749
Fix build failure of Ada runtime for Aarch64 targets

The Aarch64 back-end now asserts that the main variant of scalar types
has TYPE_USER_ALIGN cleared, and that's not the case for scalar types
declared with a confirming alignment clause in Ada.

gcc/ada/
PR bootstrap/109510
* gcc-interface/decl.cc (gnat_to_gnu_entity) <types>: Reset align
to zero if its value is equal to TYPE_ALIGN and the type is scalar.
Set TYPE_USER_ALIGN on the type only if align is positive.
gcc/ada/gcc-interface/decl.cc
This page took 0.067156 seconds and 6 git commands to generate.