From 3eb0d7c515fd51a1f1c47d036092311a02869395 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Fri, 7 Oct 2005 14:44:26 -0400 Subject: [PATCH] varasm.c (output_constant): Limit error to expanding conversions. * varasm.c (output_constant): Limit error to expanding conversions. From-SVN: r105099 --- gcc/ChangeLog | 5 +++++ gcc/varasm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7964e0ec911..7573df00644 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-10-07 DJ Delorie + + * varasm.c (output_constant): Limit error to expanding + conversions. + 2005-10-07 Richard Guenther PR middle-end/24227 diff --git a/gcc/varasm.c b/gcc/varasm.c index f21c4b981dd..c40217f6e53 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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", -- 2.30.2