varasm.c (output_constant): Limit error to expanding conversions.

* varasm.c (output_constant): Limit error to expanding
conversions.

From-SVN: r105099
This commit is contained in:
DJ Delorie 2005-10-07 14:44:26 -04:00 committed by DJ Delorie
parent 4c17e28838
commit 3eb0d7c515
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-10-07 DJ Delorie <dj@redhat.com>
* varasm.c (output_constant): Limit error to expanding
conversions.
2005-10-07 Richard Guenther <rguenther@suse.de>
PR middle-end/24227

View File

@ -3889,7 +3889,7 @@ output_constant (tree exp, unsigned HOST_WIDE_INT size, unsigned int align)
/* Make sure eliminating the conversion is really a no-op, except with
VIEW_CONVERT_EXPRs to allow for wild Ada unchecked conversions and
union types to allow for Ada unchecked unions. */
if (type_size != op_size
if (type_size < op_size
&& TREE_CODE (exp) != VIEW_CONVERT_EXPR
&& TREE_CODE (TREE_TYPE (exp)) != UNION_TYPE)
internal_error ("no-op convert from %wd to %wd bytes in initializer",