diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-11-16 02:26:42 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-11-15 21:26:42 -0500 |
commit | d43e0b7d97d527f3913f692d19748e66f5b9ff22 (patch) | |
tree | 559b4a2b278854a13608de391b2050da30ac4881 /gcc/config | |
parent | f50e7a2d92218d935970483c33c61c8566840f6b (diff) | |
download | gcc-d43e0b7d97d527f3913f692d19748e66f5b9ff22.zip gcc-d43e0b7d97d527f3913f692d19748e66f5b9ff22.tar.gz gcc-d43e0b7d97d527f3913f692d19748e66f5b9ff22.tar.bz2 |
expr.c (store_field): Pass tree instead of max size; callers changed.
* expr.c (store_field): Pass tree instead of max size; callers changed.
Change handling of alignment.
Only copy to_rtx if is TARGET.
(expand_expr_unaligned): Delete; callers now use expand_expr.
(emit_cmp_insn): No longer take ALIGN parm; all callers changed.
(expand_assignment): Change handling of alignment.
Only copy to_rtx if was original.
(get_inner_reference): No longer return alginment; callers changed.
(expand_expr, case COMPONENT_REF): Change handling of alignment.
(expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
(compare_from_rtx): Delete ALIGN parm; all callers changed.
(do_compare_rtx_and_jump): Likewise.
* expr.h: Reflect above changes.
* tree.h: Likewise.
* dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
to get_inner_reference.
* builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
* doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
* optabs.c: Likewise.
(prepare_cmp_insn): Now static; remove ALIGN parm. Callers changed.
(emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
* expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
compare_rtx_and_jump, and emit_cmp_jump_insns.
* fold-const.c: Remove PALIGN in calls to get_inner_reference.
* function.c (assign_stack_temp_for_type): No longer static.
* optabs.h (emit_cmp_insn): Remove ALIGN parm.
(prepare_cmp_insn): Delete declaration.
* rtl.h (assign_stack_temp_for_type): Add declaration.
* config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
* config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
* config/i386/i386.c,config/mips/mips.c: Likewise.
* config/i860/i860.c, config/ia64/ia64.c: Likewise.
* config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
* alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
* emit-rtl.c (change_address): Fix typo in default alignment.
(adjust_address_1): Use mode of NEW, not MODE, when setting size.
* expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
* rtl.h (REGNO_PTR_FRAME_P): New macro.
* expr.c (store_field): Pass tree instead of max size; callers changed.
Change handling of alignment.
Only copy to_rtx if is TARGET.
(expand_expr_unaligned): Delete; callers now use expand_expr.
(emit_cmp_insn): No longer take ALIGN parm; all callers changed.
(expand_assignment): Change handling of alignment.
Only copy to_rtx if was original.
(get_inner_reference): No longer return alginment; callers changed.
(expand_expr, case COMPONENT_REF): Change handling of alignment.
(expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
(compare_from_rtx): Delete ALIGN parm; all callers changed.
(do_compare_rtx_and_jump): Likewise.
* expr.h: Reflect above changes.
* tree.h: Likewise.
* dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
to get_inner_reference.
* except.c: Remove ALIGN parameter in call to emit_cmp_and_jump_insns.
* explow.c: Likewise.
* loop.c: Likewise.
* optabs.c: Likewise.
(prepare_cmp_insn): Now static; remove ALIGN parm. Callers changed.
(emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
* fold-const.c: Remove PALIGN in calls to get_inner_reference.
* function.c (assign_stack_temp_for_type): No longer static.
* optabs.h (emit_cmp_insn): Remove ALIGN parm.
(prepare_cmp_insn): Delete declaration.
* rtl.h (assign_stack_temp_for_type): Add declaration.
* config/d30v/d30v.c: Reflect above changes.
* config/i860/i860.c, config/ia64/ia64.c: Likewise.
* config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
* ada/trans.c, ada/utils2.c: Remove PALIGN parameter to
get_inner_reference.
From-SVN: r47078
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/alpha.c | 3 | ||||
-rw-r--r-- | gcc/config/clipper/clipper.c | 2 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 8 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 32 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 8 |
5 files changed, 26 insertions, 27 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index ff89b55..ca9c0e7 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -2538,8 +2538,7 @@ alpha_emit_floatuns (operands) i1 = gen_reg_rtx (DImode); f0 = gen_reg_rtx (mode); - emit_cmp_and_jump_insns (in, const0_rtx, LT, const0_rtx, DImode, 0, - 8, neglab); + emit_cmp_and_jump_insns (in, const0_rtx, LT, const0_rtx, DImode, 0, neglab); emit_insn (gen_rtx_SET (VOIDmode, out, gen_rtx_FLOAT (mode, in))); emit_jump_insn (gen_jump (donelab)); diff --git a/gcc/config/clipper/clipper.c b/gcc/config/clipper/clipper.c index 37756e9..c2002a0 100644 --- a/gcc/config/clipper/clipper.c +++ b/gcc/config/clipper/clipper.c @@ -616,7 +616,7 @@ clipper_va_arg (valist, type) OPTAB_LIB_WIDEN), GEN_INT (2), GE, const0_rtx, TYPE_MODE (TREE_TYPE (num_field)), - TREE_UNSIGNED (num_field), 0, false_label); + TREE_UNSIGNED (num_field), false_label); inreg = fold (build (MULT_EXPR, integer_type_node, num_field, build_int_2 (2, 0))); diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index e582a02..c78b84f 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -2839,8 +2839,8 @@ expand_a_rotate (code, operands) /* If the rotate amount is less than or equal to 0, we go out of the loop. */ - emit_cmp_and_jump_insns (rotate_amount, GEN_INT (0), - LE, NULL_RTX, QImode, 0, 0, end_label); + emit_cmp_and_jump_insns (rotate_amount, GEN_INT (0), LE, NULL_RTX, + QImode, 0, end_label); /* Initialize the loop counter. */ emit_move_insn (counter, rotate_amount); @@ -2857,8 +2857,8 @@ expand_a_rotate (code, operands) /* If the loop counter is non-zero, we go back to the beginning of the loop. */ - emit_cmp_and_jump_insns (counter, GEN_INT (0), - NE, NULL_RTX, QImode, 1, 0, start_label); + emit_cmp_and_jump_insns (counter, GEN_INT (0), NE, NULL_RTX, QImode, 1, + start_label); emit_label (end_label); } diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index fd60fd8..887f8c4 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2444,7 +2444,7 @@ ix86_va_arg (valist, type) (gpr, NULL_RTX, SImode, EXPAND_NORMAL), GEN_INT ((REGPARM_MAX - needed_intregs + 1) * 8), GE, const1_rtx, SImode, - 1, 1, lab_false); + 1, lab_false); } if (needed_sseregs) { @@ -2453,7 +2453,7 @@ ix86_va_arg (valist, type) GEN_INT ((SSE_REGPARM_MAX - needed_sseregs + 1) * 16 + REGPARM_MAX * 8), GE, const1_rtx, - SImode, 1, 1, lab_false); + SImode, 1, lab_false); } /* Compute index to start of area used for integer regs. */ @@ -8971,7 +8971,7 @@ ix86_expand_aligntest (variable, value) else emit_insn (gen_andsi3 (tmpcount, variable, GEN_INT (value))); emit_cmp_and_jump_insns (tmpcount, const0_rtx, EQ, 0, GET_MODE (variable), - 1, 0, label); + 1, label); return label; } @@ -9138,7 +9138,7 @@ ix86_expand_movstr (dst, src, count_exp, align_exp) { label = gen_label_rtx (); emit_cmp_and_jump_insns (countreg, GEN_INT (UNITS_PER_WORD - 1), - LEU, 0, counter_mode, 1, 0, label); + LEU, 0, counter_mode, 1, label); } if (align <= 1) { @@ -9334,7 +9334,7 @@ ix86_expand_clrstr (src, count_exp, align_exp) { label = gen_label_rtx (); emit_cmp_and_jump_insns (countreg, GEN_INT (UNITS_PER_WORD - 1), - LEU, 0, counter_mode, 1, 0, label); + LEU, 0, counter_mode, 1, label); } if (align <= 1) { @@ -9540,11 +9540,11 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx) NULL_RTX, 0, OPTAB_WIDEN); emit_cmp_and_jump_insns (align_rtx, const0_rtx, EQ, NULL, - Pmode, 1, 0, align_4_label); + Pmode, 1, align_4_label); emit_cmp_and_jump_insns (align_rtx, GEN_INT (2), EQ, NULL, - Pmode, 1, 0, align_2_label); + Pmode, 1, align_2_label); emit_cmp_and_jump_insns (align_rtx, GEN_INT (2), GTU, NULL, - Pmode, 1, 0, align_3_label); + Pmode, 1, align_3_label); } else { @@ -9555,7 +9555,7 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx) NULL_RTX, 0, OPTAB_WIDEN); emit_cmp_and_jump_insns (align_rtx, const0_rtx, EQ, NULL, - Pmode, 1, 0, align_4_label); + Pmode, 1, align_4_label); } mem = gen_rtx_MEM (QImode, out); @@ -9564,7 +9564,7 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx) /* Compare the first n unaligned byte on a byte per byte basis. */ emit_cmp_and_jump_insns (mem, const0_rtx, EQ, NULL, - QImode, 1, 0, end_0_label); + QImode, 1, end_0_label); /* Increment the address. */ if (TARGET_64BIT) @@ -9577,8 +9577,8 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx) { emit_label (align_2_label); - emit_cmp_and_jump_insns (mem, const0_rtx, EQ, NULL, - QImode, 1, 0, end_0_label); + emit_cmp_and_jump_insns (mem, const0_rtx, EQ, NULL, QImode, 1, + end_0_label); if (TARGET_64BIT) emit_insn (gen_adddi3 (out, out, const1_rtx)); @@ -9588,8 +9588,8 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx) emit_label (align_3_label); } - emit_cmp_and_jump_insns (mem, const0_rtx, EQ, NULL, - QImode, 1, 0, end_0_label); + emit_cmp_and_jump_insns (mem, const0_rtx, EQ, NULL, QImode, 1, + end_0_label); if (TARGET_64BIT) emit_insn (gen_adddi3 (out, out, const1_rtx)); @@ -9618,8 +9618,8 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx) emit_insn (gen_andsi3 (tmpreg, tmpreg, GEN_INT (trunc_int_for_mode (0x80808080, SImode)))); - emit_cmp_and_jump_insns (tmpreg, const0_rtx, EQ, 0, - SImode, 1, 0, align_4_label); + emit_cmp_and_jump_insns (tmpreg, const0_rtx, EQ, 0, SImode, 1, + align_4_label); if (TARGET_CMOVE) { diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 80f35c3..eb97c76 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -4590,8 +4590,8 @@ mips_va_arg (valist, type) /* Emit code to branch if foff == 0. */ r = expand_expr (foff, NULL_RTX, TYPE_MODE (TREE_TYPE (foff)), EXPAND_NORMAL); - emit_cmp_and_jump_insns (r, const0_rtx, EQ, - const1_rtx, GET_MODE (r), 1, 1, lab_false); + emit_cmp_and_jump_insns (r, const0_rtx, EQ, const1_rtx, GET_MODE (r), + 1, lab_false); /* Emit code for addr_rtx = ftop - foff */ t = build (MINUS_EXPR, TREE_TYPE (ftop), ftop, foff ); @@ -4657,8 +4657,8 @@ mips_va_arg (valist, type) /* Emit code to branch if goff == 0. */ r = expand_expr (goff, NULL_RTX, TYPE_MODE (TREE_TYPE (goff)), EXPAND_NORMAL); - emit_cmp_and_jump_insns (r, const0_rtx, EQ, - const1_rtx, GET_MODE (r), 1, 1, lab_false); + emit_cmp_and_jump_insns (r, const0_rtx, EQ, const1_rtx, GET_MODE (r), + 1, lab_false); /* Emit code for addr_rtx = gtop - goff. */ t = build (MINUS_EXPR, TREE_TYPE (gtop), gtop, goff); |