From patchwork Sun Aug 14 17:12:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Sokolov X-Patchwork-Id: 109961 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 EEC31B6F70 for ; Mon, 15 Aug 2011 03:12:50 +1000 (EST) Received: (qmail 30597 invoked by alias); 14 Aug 2011 17:12:47 -0000 Received: (qmail 30589 invoked by uid 22791); 14 Aug 2011 17:12:46 -0000 X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=AWL, BAYES_50, 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; Sun, 14 Aug 2011 17:12:30 +0000 Received: from corbina.ru (violin.corbina.net [195.14.50.30]) by contrabass.corbina.net (Postfix) with ESMTP id ED81FCC5AB; Sun, 14 Aug 2011 21:12:28 +0400 (MSD) Received: from [95.24.244.105] (account aesok@post.ru HELO Vista.beeline) by fe1-mc.corbina.ru (CommuniGate Pro SMTP 5.4.0) with ESMTPA id 24934384; Sun, 14 Aug 2011 21:12:28 +0400 Date: Sun, 14 Aug 2011 21:12:50 +0400 From: Anatoly Sokolov Message-ID: <1345443061.20110814211250@post.ru> To: Anatoly Sokolov CC: gcc-patches , hp@bitrange.com Subject: Re: [MMIX] Hookize PREFERRED_RELOAD_CLASS and PREFERRED_OUTPUT_RELOAD_CLASS In-Reply-To: <16210455590.20110801210848@post.ru> References: <16210455590.20110801210848@post.ru> 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. > This patch removes obsolete PREFERRED_RELOAD_CLASS and > PREFERRED_OUTPUT_RELOAD_CLASS macros from MMIX back end in the GCC and > introduces equivalent TARGET_PREFERRED_RELOAD_CLASS and > TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hooks. > --- gcc/config/mmix/mmix.c (revision 176858) > +static reg_class_t mmix_preferred_reload_class (rtx, reg_class_t); > +static reg_class_t mmix_preferred_output_reload_class (rtx, reg_class_t); > +#undef TARGET_PREFERRED_RELOAD_CLASS > +#define TARGET_PREFERRED_RELOAD_CLASS mmix_preferred_reload_class > +#undef TARGET_PREFERRED_OUTPUT_RELOAD_CLASS > +#define TARGET_PREFERRED_OUTPUT_RELOAD_CLASS mmix_preferred_reload_class The TARGET_PREFERRED_OUTPUT_RELOAD_CLASS macro incorrectly defined. This patch fix it. Regression tested on mmix-knuth-mmixware. Committed as obvious. * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine as mmix_preferred_output_reload_class. Anatoly. Index: gcc/config/mmix/mmix.c =================================================================== --- gcc/config/mmix/mmix.c (revision 177747) +++ gcc/config/mmix/mmix.c (working copy) @@ -260,7 +260,7 @@ #undef TARGET_PREFERRED_RELOAD_CLASS #define TARGET_PREFERRED_RELOAD_CLASS mmix_preferred_reload_class #undef TARGET_PREFERRED_OUTPUT_RELOAD_CLASS -#define TARGET_PREFERRED_OUTPUT_RELOAD_CLASS mmix_preferred_reload_class +#define TARGET_PREFERRED_OUTPUT_RELOAD_CLASS mmix_preferred_output_reload_class #undef TARGET_LEGITIMATE_ADDRESS_P #define TARGET_LEGITIMATE_ADDRESS_P mmix_legitimate_address_p