2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-19 15:11:08 +08:00

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
This commit is contained in:
Richard Guenther 2005-10-12 08:55:59 +00:00 committed by Richard Biener
parent 0f9d970d60
commit e2953e417a
2 changed files with 7 additions and 1 deletions

@ -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

@ -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",