ada-tree.h (TYPE_MAX_ALIGN): New macro.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 30 Nov 2015 11:25:24 +0000 (11:25 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 30 Nov 2015 11:25:24 +0000 (11:25 +0000)
commit14ecca2eea820447afe3214ed635883fbc4244a4
treef39c21c5d4e4d43f3da54dd3ba8f3ce53a526182
parent6501d5fea036e5d7c4f5f8037f217b6e8d07a60d
ada-tree.h (TYPE_MAX_ALIGN): New macro.

* gcc-interface/ada-tree.h (TYPE_MAX_ALIGN): New macro.
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not set PACKED to -2.
Remove obsolete code setting the alignment on some atomic types.
When the type has no alignment but needs strict alignment and has a
size clause, compute a maximum alignment and set it on the type.
(adjust_packed): Remove handling of -2 argument.  Deal with TYPE_ALIGN
and TYPE_MAX_ALIGN directly.
(gnat_to_gnu_field): Do not document -2 as argument.
(components_to_record): Likewise.
* gcc-interface/utils.c (finish_record_type): Do not bump alignment of
the record type beyond TYPE_MAX_ALIGN.  Reset the latter on exit.

* gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): Move around.
(GNATLIBCFLAGS_FOR_C): Reformat.
(GCC_CFLAGS): Delete.

From-SVN: r231062
gcc/ada/ChangeLog
gcc/ada/gcc-interface/Makefile.in
gcc/ada/gcc-interface/ada-tree.h
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/utils.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/rep_clause5.ads [new file with mode: 0644]