expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Sun, 26 Mar 2000 16:46:27 +0000 (16:46 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 26 Mar 2000 16:46:27 +0000 (11:46 -0500)
commit751312371e66c05a8d3b1cda949ec26aa9f1e548
tree2840a32c312eb3ff24662683de802199984108de
parent210ee0dd95258398bfaefb33d320afd5f5e5c7ee
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/ChangeLog
gcc/config/arm/pe.c
gcc/config/mips/abi64.h
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/sparc/sparc.c
gcc/expmed.c