aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-10-07 14:44:26 -0400
committerDJ Delorie <dj@gcc.gnu.org>2005-10-07 14:44:26 -0400
commit3eb0d7c515fd51a1f1c47d036092311a02869395 (patch)
treebbec8969a15679c1e35898a7668d0a753f5444f1 /gcc/varasm.c
parent4c17e288380c5b3ff5350fbe83357e077b9213d5 (diff)
downloadgcc-3eb0d7c515fd51a1f1c47d036092311a02869395.zip
gcc-3eb0d7c515fd51a1f1c47d036092311a02869395.tar.gz
gcc-3eb0d7c515fd51a1f1c47d036092311a02869395.tar.bz2
varasm.c (output_constant): Limit error to expanding conversions.
* varasm.c (output_constant): Limit error to expanding conversions. From-SVN: r105099
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index f21c4b9..c40217f 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",