This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r272968 - in /trunk/gcc: ada/ChangeLog ada/layo...


Author: pmderodat
Date: Wed Jul  3 08:14:15 2019
New Revision: 272968

URL: https://gcc.gnu.org/viewcvs?rev=272968&root=gcc&view=rev
Log:
[Ada] Fix bogus error on array with overaligned scalar component

The compiler would wrongly reject an alignment clause larger than 8 on
the component type of an array of scalars, which is valid albeit
pathological.

2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

	* layout.adb (Layout_Type): Do not set the component size of an
	array with a scalar component if the component type is
	overaligned.

gcc/testsuite/

	* gnat.dg/alignment14.adb: New testcase.

Added:
    trunk/gcc/testsuite/gnat.dg/alignment14.adb
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/layout.adb
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]