From patchwork Thu Jun 10 19:07:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anatoly Sokolov X-Patchwork-Id: 55243 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 9387F1007D1 for ; Fri, 11 Jun 2010 05:07:07 +1000 (EST) Received: (qmail 30248 invoked by alias); 10 Jun 2010 19:07:05 -0000 Received: (qmail 30237 invoked by uid 22791); 10 Jun 2010 19:07:04 -0000 X-SWARE-Spam-Status: No, hits=2.5 required=5.0 tests=AWL, BAYES_40, KAM_THEBAT, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from contrabass.post.ru (HELO contrabass.post.ru) (85.21.78.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Jun 2010 19:06:51 +0000 Received: from corbina.ru (mail.post.ru [195.14.50.16]) by contrabass.post.ru (Postfix) with ESMTP id 48FE9ADCEC for ; Thu, 10 Jun 2010 23:06:41 +0400 (MSD) Received: from [89.178.246.61] (account aesok@post.ru HELO Vista.corbina.ru) by corbina.ru (CommuniGate Pro SMTP 5.1.14) with ESMTPA id 220008965 for gcc-patches@gcc.gnu.org; Thu, 10 Jun 2010 23:06:41 +0400 Date: Thu, 10 Jun 2010 23:07:12 +0400 From: Anatoly Sokolov Message-ID: <186418716.20100610230712@post.ru> To: gcc-patches@gcc.gnu.org Subject: [PATCH] Remove FUNCTION_OUTGOING_VALUE macro from the GCC MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list 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 \