OSDN Git Service

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Jun 2009 08:38:38 +0000 (08:38 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Jun 2009 08:38:38 +0000 (08:38 +0000)
commit697f62b9fdbdc10d40058eeedf7485021bf8693d
tree84b7b9a216c4deb10a7def8f4cfe282842c5f7c2
parent571e421a165598fd83d0c8392cbcd85f78397537
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
out common predicate.  Use the maximum to compute the upper bound of
the index type only when it is not wider than sizetype.  Perform the
comparison in the index type for the generic expression.  Use real
precision to decide whether to generate special types for debugging
information.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148964 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/array6.adb [new file with mode: 0644]