varasm.c (initializer_constant_valid_for_bitfield_p): Return true for REAL_CST as...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 3 Apr 2012 07:11:25 +0000 (07:11 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 3 Apr 2012 07:11:25 +0000 (07:11 +0000)
commit1d3aa4665083eb2bcd1d394f935afc2aa4c34666
tree04901eeaa9d8ac54f5ff6b1fa3f4f9265e4ff0a4
parent0465e49e7e36b34213f3835a2079a195a519041c
varasm.c (initializer_constant_valid_for_bitfield_p): Return true for REAL_CST as well.

* varasm.c (initializer_constant_valid_for_bitfield_p): Return true
for REAL_CST as well.
(output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
In the bitfield case, if the value is a REAL_CST, convert it first to
an INTEGER_CST.

From-SVN: r186100
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/aggr5.ads [new file with mode: 0644]
gcc/varasm.c