From patchwork Wed Aug 17 21:17:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Sokolov X-Patchwork-Id: 110363 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 D699CB6F8C for ; Thu, 18 Aug 2011 07:18:09 +1000 (EST) Received: (qmail 29168 invoked by alias); 17 Aug 2011 21:18:06 -0000 Received: (qmail 29159 invoked by uid 22791); 17 Aug 2011 21:18:05 -0000 X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL, BAYES_00, KAM_THEBAT, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from contrabass.post.ru (HELO contrabass.corbina.net) (85.21.78.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Aug 2011 21:17:47 +0000 Received: from corbina.ru (violin.corbina.net [195.14.50.30]) by contrabass.corbina.net (Postfix) with ESMTP id 3B2DBCC6AB for ; Thu, 18 Aug 2011 01:17:45 +0400 (MSD) Received: from [95.25.128.124] (account aesok@post.ru HELO Vista.beeline) by fe1-mc.corbina.ru (CommuniGate Pro SMTP 5.4.0) with ESMTPA id 25829434 for gcc-patches@gcc.gnu.org; Thu, 18 Aug 2011 01:17:45 +0400 Date: Thu, 18 Aug 2011 01:17:49 +0400 From: Anatoly Sokolov Message-ID: <1108862246.20110818011749@post.ru> To: gcc-patches Subject: [PATCH] Remove PREFERRED_OUTPUT_RELOAD_CLASS macro 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 Hi. No one back end does not use PREFERRED_OUTPUT_RELOAD_CLASS macro now, this patch remove it. The TARGET_PREFERRED_RELOAD_CLASS target hook should be use instead. The patch has been bootstrapped on and regression tested on x86_64-unknown-linux-gnu for c and c++. This patch is pre-approved and should be committed within a week if no objections. * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove. * doc/tm.texi: Regenerate. * targhooks.c (default_preferred_output_reload_class): Don't use PREFERRED_OUTPUT_RELOAD_CLASS macro. * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison. Anatoly. Index: gcc/doc/tm.texi =================================================================== --- gcc/doc/tm.texi (revision 177791) +++ gcc/doc/tm.texi (working copy) @@ -2601,15 +2601,6 @@ the SSE registers (and vice versa). @end defmac -@defmac PREFERRED_OUTPUT_RELOAD_CLASS (@var{x}, @var{class}) -Like @code{PREFERRED_RELOAD_CLASS}, but for output reloads instead of -input reloads. If you don't define this macro, the default is to use -@var{class}, unchanged. - -You can also use @code{PREFERRED_OUTPUT_RELOAD_CLASS} to discourage -reload from using some alternatives, like @code{PREFERRED_RELOAD_CLASS}. -@end defmac - @deftypefn {Target Hook} reg_class_t TARGET_PREFERRED_OUTPUT_RELOAD_CLASS (rtx @var{x}, reg_class_t @var{rclass}) Like @code{TARGET_PREFERRED_RELOAD_CLASS}, but for output reloads instead of input reloads. Index: gcc/doc/tm.texi.in =================================================================== --- gcc/doc/tm.texi.in (revision 177791) +++ gcc/doc/tm.texi.in (working copy) @@ -2587,15 +2587,6 @@ the SSE registers (and vice versa). @end defmac -@defmac PREFERRED_OUTPUT_RELOAD_CLASS (@var{x}, @var{class}) -Like @code{PREFERRED_RELOAD_CLASS}, but for output reloads instead of -input reloads. If you don't define this macro, the default is to use -@var{class}, unchanged. - -You can also use @code{PREFERRED_OUTPUT_RELOAD_CLASS} to discourage -reload from using some alternatives, like @code{PREFERRED_RELOAD_CLASS}. -@end defmac - @hook TARGET_PREFERRED_OUTPUT_RELOAD_CLASS Like @code{TARGET_PREFERRED_RELOAD_CLASS}, but for output reloads instead of input reloads. Index: gcc/targhooks.c =================================================================== --- gcc/targhooks.c (revision 177791) +++ gcc/targhooks.c (working copy) @@ -1287,11 +1287,7 @@ default_preferred_output_reload_class (rtx x ATTRIBUTE_UNUSED, reg_class_t rclass) { -#ifdef PREFERRED_OUTPUT_RELOAD_CLASS - return PREFERRED_OUTPUT_RELOAD_CLASS (x, (enum reg_class) rclass); -#else return rclass; -#endif } /* The default implementation of TARGET_PREFERRED_RENAME_CLASS. */ Index: gcc/system.h =================================================================== --- gcc/system.h (revision 177791) +++ gcc/system.h (working copy) @@ -866,7 +866,8 @@ USING_SVR4_H SVR4_ASM_SPEC FUNCTION_ARG FUNCTION_ARG_ADVANCE \ FUNCTION_INCOMING_ARG IRA_COVER_CLASSES TARGET_VERSION \ MACHINE_TYPE TARGET_HAS_TARGETCM ASM_OUTPUT_BSS \ - SETJMP_VIA_SAVE_AREA FORBIDDEN_INC_DEC_CLASSES + SETJMP_VIA_SAVE_AREA FORBIDDEN_INC_DEC_CLASSES \ + PREFERRED_OUTPUT_RELOAD_CLASS /* Hooks that are no longer used. */ #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \