utils.c (maybe_unconstrained_array): Declare TYPE local variable and use it throughout.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 26 Sep 2011 09:03:52 +0000 (09:03 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 26 Sep 2011 09:03:52 +0000 (09:03 +0000)
commit1aa291f7d1b8b9e89c4ad6be87e7553cb269c18f
tree0e3583e62b69cf2a93adb229aa6787450b4da6f0
parent7d76717db858244602657e6db4920115dae77e3e
utils.c (maybe_unconstrained_array): Declare TYPE local variable and use it throughout.

* gcc-interface/utils.c (maybe_unconstrained_array): Declare TYPE local
variable and use it throughout.
<UNCONSTRAINED_ARRAY_TYPE>: Add 'break' at the end.
<RECORD_TYPE>: Do not unconditionally convert to the unpadded type as a
first step.  Also convert to the unpadded type as a last step.

From-SVN: r179186
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/array17.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/array17_pkg.ads [new file with mode: 0644]