2005-10-12 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2005 08:55:59 +0000 (08:55 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2005 08:55:59 +0000 (08:55 +0000)
PR c++/23799
* varasm.c (output_constant): Correct typo from previous
patch by DJ.

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

gcc/ChangeLog
gcc/varasm.c

index 8fa4b88..5b300b1 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-12  Richard Guenther  <rguenther@suse.de>
+
+       PR c++/23799
+       * varasm.c (output_constant): Correct typo from previous
+       patch by DJ.
+
 2005-10-11  Ian Lance Taylor  <ian@airs.com>
 
        PR rtl-optimization/13931
index c40217f..286abb3 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",