diff mbox

Remove FUNCTION_OUTGOING_VALUE macro from the GCC

Message ID 186418716.20100610230712@post.ru
State New
Headers show

Commit Message

Anatoly Sokolov June 10, 2010, 7:07 p.m. UTC
Hello.

  The FUNCTION_OUTGOING_VALUE macro don't used in any back end, now. This
patch remove FUNCTION_OUTGOING_VALUE from the GCC.

  Bootstrapped on x86_64-unknown-linux-gnu.

  OK for mainline?

        * targhooks.c (default_function_value): Don't use
        FUNCTION_OUTGOING_VALUE.
        * system.h (FUNCTION_OUTGOING_VALUE): Poison.
        * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.




Anatoly.

Comments

Mark Mitchell June 10, 2010, 8:21 p.m. UTC | #1
Anatoly Sokolov wrote:

>         * targhooks.c (default_function_value): Don't use
>         FUNCTION_OUTGOING_VALUE.
>         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
>         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.

OK.

(And, in general, patches to remove totally unused macros/functions are
pre-approved, unless those functions are intended to be used from the
debugger.)

Thanks,
diff mbox

Patch

Index: gcc/doc/tm.texi
===================================================================
--- gcc/doc/tm.texi     (revision 160565)
+++ gcc/doc/tm.texi     (working copy)
@@ -4445,11 +4445,6 @@ 
 a new target instead.
 @end defmac
 
-@defmac FUNCTION_OUTGOING_VALUE (@var{valtype}, @var{func})
-This macro has been deprecated.  Use @code{TARGET_FUNCTION_VALUE} for
-a new target instead.
-@end defmac
-
 @defmac LIBCALL_VALUE (@var{mode})
 A C expression to create an RTX representing the place where a library
 function returns a value of mode @var{mode}.
Index: gcc/targhooks.c
===================================================================
--- gcc/targhooks.c     (revision 160565)
+++ gcc/targhooks.c     (working copy)
@@ -673,11 +673,6 @@ 
       && !DECL_P (fn_decl_or_type))
     fn_decl_or_type = NULL;
 
-#ifdef FUNCTION_OUTGOING_VALUE
-  if (outgoing)
-    return FUNCTION_OUTGOING_VALUE (ret_type, fn_decl_or_type);
-#endif
-
 #ifdef FUNCTION_VALUE
   return FUNCTION_VALUE (ret_type, fn_decl_or_type);
 #else
Index: gcc/system.h
===================================================================
--- gcc/system.h        (revision 160565)
+++ gcc/system.h        (working copy)
@@ -768,7 +768,7 @@ 
        SMALL_ARG_MAX ASM_OUTPUT_SHARED_BSS ASM_OUTPUT_SHARED_COMMON       \
        ASM_OUTPUT_SHARED_LOCAL ASM_MAKE_LABEL_LINKONCE                    \
        STACK_CHECK_PROBE_INTERVAL STACK_CHECK_PROBE_LOAD                  \
-       ORDER_REGS_FOR_LOCAL_ALLOC
+       ORDER_REGS_FOR_LOCAL_ALLOC FUNCTION_OUTGOING_VALUE
 
 /* Hooks that are no longer used.  */
  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE  \