* varasm.c (initializer_constant_valid_for_bitfield_p): Return true
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Apr 2012 07:11:25 +0000 (07:11 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Apr 2012 07:11:25 +0000 (07:11 +0000)
commit766b6590b051392781bb0b54cd681881e0f52979
tree04901eeaa9d8ac54f5ff6b1fa3f4f9265e4ff0a4
parent6fa78bde865ab12cfbd085f4db86af7c4a75c301
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186100 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/aggr5.ads [new file with mode: 0644]
gcc/varasm.c