builtins.c (apply_args_size, [...]): Remove some set but not used variables.

2009-11-07  David Binderman <dcb314@hotmail.com>

	* builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
	expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
	set but not used variables.
	* calls.c (flags_from_decl_or_type): Likewise.
	* genautomata.c (check_regexp_units_distribution): Likewise.

From-SVN: r154001
This commit is contained in:
David Binderman 2009-11-07 20:51:14 +00:00 committed by Paolo Carlini
parent 2a4217d39b
commit 451409e493
4 changed files with 13 additions and 19 deletions

View File

@ -1,3 +1,11 @@
2009-11-07 David Binderman <dcb314@hotmail.com>
* builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
set but not used variables.
* calls.c (flags_from_decl_or_type): Likewise.
* genautomata.c (check_regexp_units_distribution): Likewise.
2009-11-07 Uros Bizjak <ubizjak@gmail.com>
* config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,

View File

@ -1263,7 +1263,7 @@ static enum machine_mode apply_result_mode[FIRST_PSEUDO_REGISTER];
gives the offset of that register into the block returned by
__builtin_apply_args. 0 indicates that the register is not
used for calling a function. */
static int apply_args_reg_offset[FIRST_PSEUDO_REGISTER];
/* static int apply_args_reg_offset[FIRST_PSEUDO_REGISTER]; not used */
/* Return the size required for the block returned by __builtin_apply_args,
and initialize apply_args_mode. */
@ -1297,14 +1297,12 @@ apply_args_size (void)
align = GET_MODE_ALIGNMENT (mode) / BITS_PER_UNIT;
if (size % align != 0)
size = CEIL (size, align) * align;
apply_args_reg_offset[regno] = size;
size += GET_MODE_SIZE (mode);
apply_args_mode[regno] = mode;
}
else
{
apply_args_mode[regno] = VOIDmode;
apply_args_reg_offset[regno] = 0;
}
}
return size;
@ -1924,7 +1922,7 @@ static rtx
expand_builtin_mathfn (tree exp, rtx target, rtx subtarget)
{
optab builtin_optab;
rtx op0, insns, before_call;
rtx op0, insns;
tree fndecl = get_callee_fndecl (exp);
enum machine_mode mode;
bool errno_set = false;
@ -2031,8 +2029,6 @@ expand_builtin_mathfn (tree exp, rtx target, rtx subtarget)
end_sequence ();
}
before_call = get_last_insn ();
return expand_call (exp, target, target == const0_rtx);
}
@ -2903,15 +2899,12 @@ expand_powi_1 (enum machine_mode mode, unsigned HOST_WIDE_INT n, rtx *cache)
static rtx
expand_powi (rtx x, enum machine_mode mode, HOST_WIDE_INT n)
{
unsigned HOST_WIDE_INT val;
rtx cache[POWI_TABLE_SIZE];
rtx result;
if (n == 0)
return CONST1_RTX (mode);
val = (n < 0) ? -n : n;
memset (cache, 0, sizeof (cache));
cache[1] = x;
@ -4893,12 +4886,11 @@ expand_builtin_unop (enum machine_mode target_mode, tree exp, rtx target,
static rtx
expand_builtin_expect (tree exp, rtx target)
{
tree arg, c;
tree arg;
if (call_expr_nargs (exp) < 2)
return const0_rtx;
arg = CALL_EXPR_ARG (exp, 0);
c = CALL_EXPR_ARG (exp, 1);
target = expand_expr (arg, target, VOIDmode, EXPAND_NORMAL);
/* When guessing was done, the hints should be already stripped away. */
@ -12140,7 +12132,7 @@ maybe_emit_chk_warning (tree exp, enum built_in_function fcode)
static void
maybe_emit_sprintf_chk_warning (tree exp, enum built_in_function fcode)
{
tree dest, size, len, fmt, flag;
tree size, len, fmt;
const char *fmt_str;
int nargs = call_expr_nargs (exp);
@ -12148,8 +12140,6 @@ maybe_emit_sprintf_chk_warning (tree exp, enum built_in_function fcode)
if (nargs < 4)
return;
dest = CALL_EXPR_ARG (exp, 0);
flag = CALL_EXPR_ARG (exp, 1);
size = CALL_EXPR_ARG (exp, 2);
fmt = CALL_EXPR_ARG (exp, 3);

View File

@ -589,12 +589,9 @@ int
flags_from_decl_or_type (const_tree exp)
{
int flags = 0;
const_tree type = exp;
if (DECL_P (exp))
{
type = TREE_TYPE (exp);
/* The function exp may have the `malloc' attribute. */
if (DECL_IS_MALLOC (exp))
flags |= ECF_MALLOC;

View File

@ -5045,7 +5045,7 @@ static void
check_regexp_units_distribution (const char *insn_reserv_name,
regexp_t regexp)
{
int i, j, k, cycle, cycle2, start, n_alts, alt, alt2;
int i, j, k, cycle, start, n_alts, alt, alt2;
bool annotation_reservation_message_reported_p;
regexp_t seq, allof, unit;
struct unit_usage *unit_usage_ptr;
@ -5164,7 +5164,6 @@ check_regexp_units_distribution (const char *insn_reserv_name,
j < (int) VEC_length (unit_usage_t, cycle_alt_unit_usages);
j++)
{
cycle2 = j / n_alts;
alt2 = j % n_alts;
if (! unit_present_on_list_p
(VEC_index (unit_usage_t, cycle_alt_unit_usages,