This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Remove FUNCTION_OUTGOING_VALUE macro from the GCC


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.


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  \


Anatoly.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]