From 5da1e2c4897295fb32739724224a86c866dff1d5 Mon Sep 17 00:00:00 2001 From: Alan Lehotsky Date: Thu, 28 Dec 2000 00:55:03 -0500 Subject: expmed.c (store_bit_field): Correctly compute smallest mode that is sufficient to contain all bits we are... * expmed.c (store_bit_field): Correctly compute smallest mode that is sufficient to contain all bits we are storing. From-SVN: r38507 --- gcc/expmed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/expmed.c') diff --git a/gcc/expmed.c b/gcc/expmed.c index 351dfe4..89aa3e7 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -399,7 +399,7 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, align, total_size) VOIDmode, because that is what store_field uses to indicate that this is a bit field, but passing VOIDmode to operand_subword_force will result in an abort. */ - fieldmode = mode_for_size (nwords * BITS_PER_WORD, MODE_INT, 0); + fieldmode = smallest_mode_for_size (nwords * BITS_PER_WORD, MODE_INT, 0); for (i = 0; i < nwords; i++) { -- cgit v1.1