* varasm.c (output_constant): Limit error to expanding
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Oct 2005 18:44:26 +0000 (18:44 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Oct 2005 18:44:26 +0000 (18:44 +0000)
conversions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105099 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/varasm.c

index 7964e0e..7573df0 100644 (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
index f21c4b9..c40217f 100644 (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",