diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2010-04-14 17:23:05 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2010-04-14 17:23:05 +0200 |
commit | d58770e719cdc3c49707db835c5deeb7b35d1fb6 (patch) | |
tree | 8bdac241676c917c16adfc3e9a6d27d718c482d0 /gcc | |
parent | a3f1cee4d3226d5af5f9972952d46c60d1e88d3e (diff) | |
download | gcc-d58770e719cdc3c49707db835c5deeb7b35d1fb6.zip gcc-d58770e719cdc3c49707db835c5deeb7b35d1fb6.tar.gz gcc-d58770e719cdc3c49707db835c5deeb7b35d1fb6.tar.bz2 |
alpha.c (alpha_adjust_cost): Remove set but not used insn_type variable.
* config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
used insn_type variable.
(function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
to avoid set-but-not-used warning.
From-SVN: r158348
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.c | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 311d5d1..884217c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2010-04-14 Uros Bizjak <ubizjak@gmail.com> + * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not + used insn_type variable. + (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration + to avoid set-but-not-used warning. + +2010-04-14 Uros Bizjak <ubizjak@gmail.com> + * df-core.c (df_ref_debug): Change format string placeholder from 0x%x to %#x. * dwarf2asm.c (dw2_asm_output_data_raw, diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 3eaed6a..a123b11 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -4732,7 +4732,7 @@ alpha_split_lock_test_and_set_12 (enum machine_mode mode, rtx dest, rtx addr, static int alpha_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost) { - enum attr_type insn_type, dep_insn_type; + enum attr_type dep_insn_type; /* If the dependence is an anti-dependence, there is no cost. For an output dependence, there is sometimes a cost, but it doesn't seem @@ -4744,7 +4744,6 @@ alpha_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost) if (recog_memoized (insn) < 0 || recog_memoized (dep_insn) < 0) return cost; - insn_type = get_attr_type (insn); dep_insn_type = get_attr_type (dep_insn); /* Bring in the user-defined memory latency. */ @@ -5855,7 +5854,7 @@ rtx function_value (const_tree valtype, const_tree func ATTRIBUTE_UNUSED, enum machine_mode mode) { - unsigned int regnum, dummy; + unsigned int regnum, dummy ATTRIBUTE_UNUSED; enum mode_class mclass; gcc_assert (!valtype || !alpha_return_in_memory (valtype, func)); |