]> gcc.gnu.org Git - gcc.git/commit - gcc/ada/gcc-interface/trans.c
decl.c (gnat_to_gnu_entity): Filter out negative size for the array dimensions like...
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 26 Sep 2009 11:25:23 +0000 (11:25 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 26 Sep 2009 11:25:23 +0000 (11:25 +0000)
commit03b6f8a219d3d7149ec4a69d9d75342e494a67b9
tree67569ab9ab216cac9149ef9e9867fe4340750fc8
parent6191ca81314cf337a6f4577195b91f685f6bef3f
decl.c (gnat_to_gnu_entity): Filter out negative size for the array dimensions like in the constrained case.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
negative size for the array dimensions like in the constrained case.
<E_Array_Subtype>: Do not create an artificially non-constant high
bound if the low bound is non-constant.  Minor tweaks.

* gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
and turn ALIASED into a boolean parameter.  Adjust calls to self.
<N_Attribute_Reference>: Return 1 for more attributes.
<N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
<N_Assignment_Statement>: Return 1 for the LHS.
(Identifier_to_gnu): Adjust calls to lvalue_required_p.
(call_to_gnu): Be prepared for wrapped boolean rvalues.

From-SVN: r152201
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/array9.adb [new file with mode: 0644]
This page took 0.062129 seconds and 5 git commands to generate.