From 751312371e66c05a8d3b1cda949ec26aa9f1e548 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 26 Mar 2000 16:46:27 +0000 Subject: expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX. * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX. * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and int_bit_position. * config/mips/mips.c (function_arg): Likewise; also remove cast and make variables unsigned or HOST_WIDE_INT and use tree_low_cst. (mips_function_value): Use int_byte_position and make HOST_WIDE_INT. * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned. * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned. (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise. (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise. (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed. (struct mips_arg): arg_number, arg_words, fp_arg_words, and num_adjusts now unsigned. (FUNCTION_ARG_BOUNDARY): Remove unneeded cast. * config/sparc/sparc.c (struct function_arg_record_value_parms): NREGS now unsigned. (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT as is BITPOS variable; use host_integerp and int_bit_position. (function_arg_record_value_2): Likewise. (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT. Variable REGNO now unsigned. (function_arg_record_value): NREGS now unsigned. From-SVN: r32748 --- 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 0f29b3b..25f1958 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -1138,7 +1138,7 @@ extract_bit_field (str_rtx, bitsize, bitnum, unsignedp, /* Offset from start of field in OP0. */ unsigned int bit_offset = (WORDS_BIG_ENDIAN ? MAX (0, ((int) bitsize - ((int) i + 1) - * BITS_PER_WORD)) + * (int) BITS_PER_WORD)) : (int) i * BITS_PER_WORD); rtx target_part = operand_subword (target, wordnum, 1, VOIDmode); rtx result_part -- cgit v1.1