expr.c (store_constructor): Use gen_int_mode to correctly sign-extend CONST_INT value.

* expr.c (store_constructor): Use gen_int_mode to correctly
	sign-extend CONST_INT value.

From-SVN: r80022
This commit is contained in:
Ulrich Weigand 2004-03-27 16:15:59 +00:00 committed by Ulrich Weigand
parent 6f52a889fd
commit 053ee101a4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
* expr.c (store_constructor): Use gen_int_mode to correctly
sign-extend CONST_INT value.
2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.

View File

@ -5081,7 +5081,7 @@ store_constructor (tree exp, rtx target, int cleared, HOST_WIDE_INT size)
{
if (word != 0 || ! cleared)
{
rtx datum = GEN_INT (word);
rtx datum = gen_int_mode (word, mode);
rtx to_rtx;
/* The assumption here is that it is safe to use