aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/sh/sh.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a76a372..33778f8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
+
+ * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
+
2009-08-12 Richard Guenther <rguenther@suse.de>
PR tree-optimization/41011
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 337be6b..b092c0e 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -7901,7 +7901,8 @@ sh_dwarf_register_span (rtx reg)
static enum machine_mode
sh_promote_function_mode (const_tree type, enum machine_mode mode,
- int *punsignedp, const_tree funtype, int for_return)
+ int *punsignedp, const_tree funtype,
+ int for_return ATTRIBUTE_UNUSED)
{
if (sh_promote_prototypes (funtype))
return promote_mode (type, mode, punsignedp);