diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2000-02-10 22:05:40 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2000-02-10 17:05:40 -0500 |
commit | 729a212576ebc14125d4c8e33a5b13ba43eeadec (patch) | |
tree | 6986eb3ff22851f6ba40b08e9a2247fb26755e79 /gcc/expr.h | |
parent | 5e4900c7f4945f48d9660d2682bbbcce40ec9603 (diff) | |
download | gcc-729a212576ebc14125d4c8e33a5b13ba43eeadec.zip gcc-729a212576ebc14125d4c8e33a5b13ba43eeadec.tar.gz gcc-729a212576ebc14125d4c8e33a5b13ba43eeadec.tar.bz2 |
combine.c (make_extraction, [...]): Avoid warning on mixed-signedness conditionals.
* combine.c (make_extraction, force_to_mode): Avoid warning on
mixed-signedness conditionals.
(make_field_assignment, nonzero_bits): Likewise.
* expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
(store_split_bit_field, extract_split_bit_field): Likewise.
(extract_fixed_bit_field, store_bit_field,
* expr.c: Change alignment to be unsigned everywhere.
(move_by_pieces, store_constructor_field, store_constructor):
Alignment parm is unsigned.
(emit_block_move, emit_group_load, emit_group_store): Likewise.
(clear_storage, emit_push_insn, compare_from_rtx): Likewise.
(do_compare_rtx_and_jump): Likewise.
(move_by_pieces_ninsns, clear_by_pieces): Likewise.
Compare align with GET_MODE_ALIGNMENT.
(expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
(get_inner_reference): Likewise.
(copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
(expand_assignment): Local vars for alignment now unsigned.
(store_constructor, store_field, expand_expr, do_jump): Likewise.
(do_compare_and_jump): Likewise.
(store_field): Call new function expr_align.
* expr.h (emit_block_move, emit_group_load, emit_group_store):
Alignment arg now unsigned.
(clear_storage, emit_push_insn, compare_from_rtx): Likewise.
(do_compare_rtx_and_jump, store_bit_field): Likewise.
(extract_bit_field): Likewise.
* fold-const.c (add_double): Add cast to eliminate signedness warning.
* machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
(get_best_mode): Alignment arg is unsigned.
* rtl.h (move_by_pieces): Likewise.
* store-layout.c (maximum_field_alignment, set_alignment):
Now unsigned.
(layout_decl): Alignment arg is now unsigned.
Remove unneeded casts.
(layout_record, layout_union, layout_type): Remove unneeded casts.
Local alignment variables now unsigned.
(get_best_mode): Alignment arg now unsigned.
* tree.c (expr_align): New function.
* tree.h (expr_align): Likewise.
(maximum_field_alignment, set_alignment): Now unsigned.
(get_inner_reference): Alignment argument is now pointer to unsigned.
* varasm.c (assemble_variable): Add cast to eliminate warning.
From-SVN: r31904
Diffstat (limited to 'gcc/expr.h')
-rw-r--r-- | gcc/expr.h | 32 |
1 files changed, 20 insertions, 12 deletions
@@ -942,10 +942,11 @@ extern void convert_move PARAMS ((rtx, rtx, int)); extern rtx convert_to_mode PARAMS ((enum machine_mode, rtx, int)); /* Convert an rtx to MODE from OLDMODE and return the result. */ -extern rtx convert_modes PARAMS ((enum machine_mode, enum machine_mode, rtx, int)); +extern rtx convert_modes PARAMS ((enum machine_mode, enum machine_mode, + rtx, int)); /* Emit code to move a block Y to a block X. */ -extern rtx emit_block_move PARAMS ((rtx, rtx, rtx, int)); +extern rtx emit_block_move PARAMS ((rtx, rtx, rtx, unsigned int)); /* Copy all or part of a value X into registers starting at REGNO. The number of registers to be filled is NREGS. */ @@ -957,10 +958,11 @@ extern void move_block_from_reg PARAMS ((int, rtx, int, int)); /* Load a BLKmode value into non-consecutive registers represented by a PARALLEL. */ -extern void emit_group_load PARAMS ((rtx, rtx, int, int)); +extern void emit_group_load PARAMS ((rtx, rtx, int, unsigned int)); + /* Store a BLKmode value from non-consecutive registers represented by a PARALLEL. */ -extern void emit_group_store PARAMS ((rtx, rtx, int, int)); +extern void emit_group_store PARAMS ((rtx, rtx, int, unsigned int)); #ifdef TREE_CODE /* Copy BLKmode object from a set of registers. */ @@ -969,16 +971,18 @@ extern rtx copy_blkmode_from_reg PARAMS ((rtx,rtx,tree)); /* Mark REG as holding a parameter for the next CALL_INSN. */ extern void use_reg PARAMS ((rtx *, rtx)); + /* Mark NREGS consecutive regs, starting at REGNO, as holding parameters for the next CALL_INSN. */ extern void use_regs PARAMS ((rtx *, int, int)); + /* Mark a PARALLEL as holding a parameter for the next CALL_INSN. */ extern void use_group_regs PARAMS ((rtx *, rtx)); /* Write zeros through the storage of OBJECT. If OBJECT has BLKmode, SIZE is its length in bytes and ALIGN is its alignment. */ -extern rtx clear_storage PARAMS ((rtx, rtx, int)); +extern rtx clear_storage PARAMS ((rtx, rtx, unsigned int)); /* Emit insns to set X from Y. */ extern rtx emit_move_insn PARAMS ((rtx, rtx)); @@ -995,8 +999,9 @@ extern rtx gen_push_operand PARAMS ((void)); #ifdef TREE_CODE /* Generate code to push something onto the stack, given its mode and type. */ -extern void emit_push_insn PARAMS ((rtx, enum machine_mode, tree, rtx, int, - int, rtx, int, rtx, rtx, int, rtx)); +extern void emit_push_insn PARAMS ((rtx, enum machine_mode, tree, rtx, + unsigned int, int, rtx, int, rtx, rtx, + int, rtx)); /* Emit library call. */ extern void emit_library_call PARAMS ((rtx orgfun, int no_queue, @@ -1056,10 +1061,10 @@ extern void do_jump PARAMS ((tree, rtx, rtx)); /* Generate rtl to compare two rtx's, will call emit_cmp_insn. */ extern rtx compare_from_rtx PARAMS ((rtx, rtx, enum rtx_code, int, - enum machine_mode, rtx, int)); + enum machine_mode, rtx, unsigned int)); extern void do_compare_rtx_and_jump PARAMS ((rtx, rtx, enum rtx_code, int, - enum machine_mode, rtx, int, - rtx, rtx)); + enum machine_mode, rtx, + unsigned int, rtx, rtx)); /* Generate a tablejump instruction (used for switch statements). */ extern void do_tablejump PARAMS ((rtx, enum machine_mode, rtx, rtx, rtx)); @@ -1193,8 +1198,11 @@ extern rtx hard_libcall_value PARAMS ((enum machine_mode)); of STACK_BOUNDARY / BITS_PER_UNIT. */ extern rtx round_push PARAMS ((rtx)); -extern rtx store_bit_field PARAMS ((rtx, int, int, enum machine_mode, rtx, int, int)); -extern rtx extract_bit_field PARAMS ((rtx, int, int, int, rtx, enum machine_mode, enum machine_mode, int, int)); +extern rtx store_bit_field PARAMS ((rtx, int, int, enum machine_mode, rtx, + unsigned int, int)); +extern rtx extract_bit_field PARAMS ((rtx, int, int, int, rtx, + enum machine_mode, enum machine_mode, + unsigned int, int)); extern rtx expand_mult PARAMS ((enum machine_mode, rtx, rtx, rtx, int)); extern rtx expand_mult_add PARAMS ((rtx, rtx, rtx, rtx,enum machine_mode, int)); extern rtx expand_mult_highpart_adjust PARAMS ((enum machine_mode, rtx, rtx, rtx, rtx, int)); |