[Ada] Remove spurious -Wuninitialized warning for small array at -O2
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 9 Oct 2018 15:05:49 +0000 (15:05 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 9 Oct 2018 15:05:49 +0000 (15:05 +0000)
commit8dcefdc00380da344956659fdb05d9b9e1aa1c8c
treec586194cd8a6240074fa1d71e0fa4a39b7d10c02
parentda5f6eb46bcd67d6d3e15c0f43205f70e0d91c2d
[Ada] Remove spurious -Wuninitialized warning for small array at -O2

2018-10-09  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* gcc-interface/decl.c (type_requires_init_of_formal): New
predicate.
(gnat_to_gnu_param): Use it to determine whether a PARM_DECL
must be created for an Out parameter passed by copy.

From-SVN: r264971
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c