varasm.c (initializer_constant_valid_p): Forbid view-conversions from aggregate to...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 17 Sep 2008 21:48:08 +0000 (21:48 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 17 Sep 2008 21:48:08 +0000 (21:48 +0000)
commit1a8c909ebd0bbd58ed5308bc66dc923ec5cfaafd
treeb323580342f5e9faae9bf584a093129a2b0fa96d
parent9f509004fcba4e2ef649c347f679108fefdff122
varasm.c (initializer_constant_valid_p): Forbid view-conversions from aggregate to non-aggregate type if...

* varasm.c (initializer_constant_valid_p): Forbid view-conversions
from aggregate to non-aggregate type if the bit pattern is not fully
preserved afterwards.

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