Commit bf758008 by Uros Bizjak

alpha.c (alpha_legitimize_reload_address): Add cast to enum type.

	* config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
	enum type.
	(alpha_rtx_costs): Ditto.
	(emit_unlikely_jump): Use add_reg_note.
	(emit_frame_store_1): Ditto.
	(alpha_expand_prologue): Ditto.
	(alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
	* config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.

From-SVN: r146637
parent 7323a100
2009-04-23 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
enum type.
(alpha_rtx_costs): Ditto.
(emit_unlikely_jump): Use add_reg_note.
(emit_frame_store_1): Ditto.
(alpha_expand_prologue): Ditto.
(alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
* config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
2009-04-23 Nick Clifton <nickc@redhat.com> 2009-04-23 Nick Clifton <nickc@redhat.com>
* config/v850/v850.md (epilogue): Remove suppressed code. * config/v850/v850.md (epilogue): Remove suppressed code.
...@@ -102,8 +113,7 @@ ...@@ -102,8 +113,7 @@
* varasm.c: Likewise. * varasm.c: Likewise.
* varray.h: Likewise. * varray.h: Likewise.
* vec.h: Likewise. * vec.h: Likewise.
* coretypes.h: Do not define GTY macro if it is already * coretypes.h: Do not define GTY macro if it is already defined.
defined.
* doc/gty.texi: Update GTY documentation to new syntax. * doc/gty.texi: Update GTY documentation to new syntax.
* gengtype-lex.l: Enforce attribute-like syntax for GTY * gengtype-lex.l: Enforce attribute-like syntax for GTY
annotations on structs. annotations on structs.
...@@ -111,7 +121,7 @@ ...@@ -111,7 +121,7 @@
2009-04-22 Mark Heffernan <meheff@google.com> 2009-04-22 Mark Heffernan <meheff@google.com>
* gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=. * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
2009-04-22 Kazu Hirata <kazu@codesourcery.com> 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
...@@ -127,8 +137,7 @@ ...@@ -127,8 +137,7 @@
2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* Makefile.in: Update dependencies. * Makefile.in: Update dependencies.
* errors.c (warning): Remove unused parameter 'opt'. Returns * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
'void'.
* errors.h: Remove bogus comment about compatibility. * errors.h: Remove bogus comment about compatibility.
(warning): Update declaration. (warning): Update declaration.
* genautomata.c: Update all calls to warning. * genautomata.c: Update all calls to warning.
......
...@@ -1223,7 +1223,7 @@ alpha_legitimize_reload_address (rtx x, ...@@ -1223,7 +1223,7 @@ alpha_legitimize_reload_address (rtx x,
{ {
push_reload (XEXP (x, 0), NULL_RTX, &XEXP (x, 0), NULL, push_reload (XEXP (x, 0), NULL_RTX, &XEXP (x, 0), NULL,
BASE_REG_CLASS, GET_MODE (x), VOIDmode, 0, 0, BASE_REG_CLASS, GET_MODE (x), VOIDmode, 0, 0,
opnum, type); opnum, (enum reload_type) type);
return x; return x;
} }
...@@ -1254,7 +1254,7 @@ alpha_legitimize_reload_address (rtx x, ...@@ -1254,7 +1254,7 @@ alpha_legitimize_reload_address (rtx x,
push_reload (XEXP (x, 0), NULL_RTX, &XEXP (x, 0), NULL, push_reload (XEXP (x, 0), NULL_RTX, &XEXP (x, 0), NULL,
BASE_REG_CLASS, GET_MODE (x), VOIDmode, 0, 0, BASE_REG_CLASS, GET_MODE (x), VOIDmode, 0, 0,
opnum, type); opnum, (enum reload_type) type);
return x; return x;
} }
...@@ -1333,8 +1333,11 @@ alpha_rtx_costs (rtx x, int code, int outer_code, int *total, ...@@ -1333,8 +1333,11 @@ alpha_rtx_costs (rtx x, int code, int outer_code, int *total,
else if (GET_CODE (XEXP (x, 0)) == MULT else if (GET_CODE (XEXP (x, 0)) == MULT
&& const48_operand (XEXP (XEXP (x, 0), 1), VOIDmode)) && const48_operand (XEXP (XEXP (x, 0), 1), VOIDmode))
{ {
*total = (rtx_cost (XEXP (XEXP (x, 0), 0), outer_code, speed) *total = (rtx_cost (XEXP (XEXP (x, 0), 0),
+ rtx_cost (XEXP (x, 1), outer_code, speed) + COSTS_N_INSNS (1)); (enum rtx_code) outer_code, speed)
+ rtx_cost (XEXP (x, 1),
(enum rtx_code) outer_code, speed)
+ COSTS_N_INSNS (1));
return true; return true;
} }
return false; return false;
...@@ -4390,7 +4393,7 @@ emit_unlikely_jump (rtx cond, rtx label) ...@@ -4390,7 +4393,7 @@ emit_unlikely_jump (rtx cond, rtx label)
x = gen_rtx_IF_THEN_ELSE (VOIDmode, cond, label, pc_rtx); x = gen_rtx_IF_THEN_ELSE (VOIDmode, cond, label, pc_rtx);
x = emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, x)); x = emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, x));
REG_NOTES (x) = gen_rtx_EXPR_LIST (REG_BR_PROB, very_unlikely, NULL_RTX); add_reg_note (x, REG_BR_PROB, very_unlikely);
} }
/* A subroutine of the atomic operation splitters. Emit a load-locked /* A subroutine of the atomic operation splitters. Emit a load-locked
...@@ -6579,7 +6582,7 @@ alpha_expand_builtin (tree exp, rtx target, ...@@ -6579,7 +6582,7 @@ alpha_expand_builtin (tree exp, rtx target,
insn_op = &insn_data[icode].operand[arity + nonvoid]; insn_op = &insn_data[icode].operand[arity + nonvoid];
op[arity] = expand_expr (arg, NULL_RTX, insn_op->mode, 0); op[arity] = expand_expr (arg, NULL_RTX, insn_op->mode, EXPAND_NORMAL);
if (!(*insn_op->predicate) (op[arity], insn_op->mode)) if (!(*insn_op->predicate) (op[arity], insn_op->mode))
op[arity] = copy_to_mode_reg (insn_op->mode, op[arity]); op[arity] = copy_to_mode_reg (insn_op->mode, op[arity]);
...@@ -7456,10 +7459,8 @@ emit_frame_store_1 (rtx value, rtx base_reg, HOST_WIDE_INT frame_bias, ...@@ -7456,10 +7459,8 @@ emit_frame_store_1 (rtx value, rtx base_reg, HOST_WIDE_INT frame_bias,
mem = gen_rtx_MEM (DImode, addr); mem = gen_rtx_MEM (DImode, addr);
} }
REG_NOTES (insn) add_reg_note (insn, REG_FRAME_RELATED_EXPR,
= gen_rtx_EXPR_LIST (REG_FRAME_RELATED_EXPR, gen_rtx_SET (VOIDmode, mem, frame_reg));
gen_rtx_SET (VOIDmode, mem, frame_reg),
REG_NOTES (insn));
} }
} }
...@@ -7637,14 +7638,12 @@ alpha_expand_prologue (void) ...@@ -7637,14 +7638,12 @@ alpha_expand_prologue (void)
possibly intuit through the loop above. So we invent this possibly intuit through the loop above. So we invent this
note it looks at instead. */ note it looks at instead. */
RTX_FRAME_RELATED_P (seq) = 1; RTX_FRAME_RELATED_P (seq) = 1;
REG_NOTES (seq) add_reg_note (seq, REG_FRAME_RELATED_EXPR,
= gen_rtx_EXPR_LIST (REG_FRAME_RELATED_EXPR, gen_rtx_SET (VOIDmode, stack_pointer_rtx,
gen_rtx_SET (VOIDmode, stack_pointer_rtx, gen_rtx_PLUS (Pmode, stack_pointer_rtx,
gen_rtx_PLUS (Pmode, stack_pointer_rtx, GEN_INT (TARGET_ABI_UNICOSMK
GEN_INT (TARGET_ABI_UNICOSMK ? -frame_size + 64
? -frame_size + 64 : -frame_size))));
: -frame_size))),
REG_NOTES (seq));
} }
if (!TARGET_ABI_UNICOSMK) if (!TARGET_ABI_UNICOSMK)
......
...@@ -5402,12 +5402,9 @@ ...@@ -5402,12 +5402,9 @@
rtx label; rtx label;
label = XEXP (operands[1], 0); label = XEXP (operands[1], 0);
REG_NOTES (insn1) = gen_rtx_EXPR_LIST (REG_LABEL_OPERAND, label, add_reg_note (insn1, REG_LABEL_OPERAND, label);
REG_NOTES (insn1)); add_reg_note (insn2, REG_LABEL_OPERAND, label);
REG_NOTES (insn2) = gen_rtx_EXPR_LIST (REG_LABEL_OPERAND, label, add_reg_note (insn3, REG_LABEL_OPERAND, label);
REG_NOTES (insn2));
REG_NOTES (insn3) = gen_rtx_EXPR_LIST (REG_LABEL_OPERAND, label,
REG_NOTES (insn3));
LABEL_NUSES (label) += 3; LABEL_NUSES (label) += 3;
} }
DONE; DONE;
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
2009-04-22 Mark Heffernan <meheff@google.com> 2009-04-22 Mark Heffernan <meheff@google.com>
* gcc.dg/profile-generate-3.c: New test. * gcc.dg/profile-generate-3.c: New test.
2009-04-22 Jan Hubicka <jh@suse.cz> 2009-04-22 Jan Hubicka <jh@suse.cz>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment