From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19455 invoked by alias); 8 May 2011 08:48:20 -0000 Received: (qmail 19430 invoked by uid 22791); 8 May 2011 08:48:17 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,SARE_CHARSET_W1251 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 08 May 2011 08:48:03 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id AE610CB01D4; Sun, 8 May 2011 10:48:02 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KK-KPT3gmhdT; Sun, 8 May 2011 10:47:59 +0200 (CEST) Received: from [192.168.1.3] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 72DB7CB0291; Sun, 8 May 2011 10:47:59 +0200 (CEST) From: Eric Botcazou To: Anatoly Sokolov Subject: Re: [SPARC] Remove unused macros Date: Sun, 08 May 2011 12:12:00 -0000 User-Agent: KMail/1.9.9 Cc: "gcc-patches" , rth@redhat.com References: <133461105.20110504230736@post.ru> In-Reply-To: <133461105.20110504230736@post.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201105081047.38545.ebotcazou@adacore.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg00605.txt.bz2 > This patch remove some unused macros from sparc.h. The > RTX_OK_FOR_OFFSET_P and RTX_OK_FOR_OLO10_P macros is used only in > sparc_legitimate_address_p function and moved to sparc.c. Thanks for spotting this. > OK to install? > > > * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P, > SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove. > (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to... > * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P, > RTX_OK_FOR_OLO10_P): ...here. > (sparc_mode_dependent_address_p): Use symbolic_operand instead of > SYMBOLIC_CONST. OK if you move... > On SPARC, the actual legitimate addresses must be REG+REG or > REG+SMALLINT - ordinarily. This changes a bit when generating PIC. ...this couple of sentences to the head comment of sparc_legitimate_address_p. -- Eric Botcazou