From patchwork Thu Jun 10 19:07:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Remove FUNCTION_OUTGOING_VALUE macro from the GCC Date: Thu, 10 Jun 2010 09:07:12 -0000 From: Anatoly Sokolov X-Patchwork-Id: 55243 Message-Id: <186418716.20100610230712@post.ru> To: gcc-patches@gcc.gnu.org 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. 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 \