I don't think this is sufficient to bring the rl78 back to a working
state, but it's a necessary step.

ARGS is unused in rl78_handle_func_attribute, but wasn't marked
appropriately.

Fixed in the obvious way.  Committed to the trunk.

Jeff
commit 5c38c127433adad901f70bac0b9cff258ae831cd
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Tue Feb 13 18:17:23 2018 +0000

            * config/rl78/rl78.c (rl78_handle_func_attribute): Mark
            ARGS as unused.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257632 
138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f2a89589995..a7b43651115 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2018-02-13  Jeff Law  <l...@redhat.com>
+
+       * config/rl78/rl78.c (rl78_handle_func_attribute): Mark
+       ARGS as unused.
+
 2018-02-13  Alexandre Oliva <aol...@redhat.com>
 
        * common.opt (gas-loc-support, gas-locview-support): New.
diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c
index 7b2be23577b..5158e83c364 100644
--- a/gcc/config/rl78/rl78.c
+++ b/gcc/config/rl78/rl78.c
@@ -804,7 +804,7 @@ is_brk_interrupt_func (const_tree decl)
 static tree
 rl78_handle_func_attribute (tree * node,
                            tree   name,
-                           tree   args,
+                           tree   args ATTRIBUTE_UNUSED,
                            int    flags ATTRIBUTE_UNUSED,
                            bool * no_add_attrs)
 {

Reply via email to