diff options
author | Richard Guenther <rguenther@suse.de> | 2005-10-12 08:55:59 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2005-10-12 08:55:59 +0000 |
commit | e2953e417a68f09fbe9aebc96e3a31aff6ef35dc (patch) | |
tree | c859a9e2a0fa0e53ec57a1ffd49745f0c511dada /gcc/varasm.c | |
parent | 0f9d970d60d34ab6d7f47e741df998e396c999c3 (diff) | |
download | gcc-e2953e417a68f09fbe9aebc96e3a31aff6ef35dc.zip gcc-e2953e417a68f09fbe9aebc96e3a31aff6ef35dc.tar.gz gcc-e2953e417a68f09fbe9aebc96e3a31aff6ef35dc.tar.bz2 |
re PR c++/23799 (ICE: no-op convert from 8 to 4 bytes in initializer)
2005-10-12 Richard Guenther <rguenther@suse.de>
PR c++/23799
* varasm.c (output_constant): Correct typo from previous
patch by DJ.
From-SVN: r105290
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index c40217f..286abb3 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", |