From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25966 invoked by alias); 4 May 2011 17:44:18 -0000 Received: (qmail 25956 invoked by uid 22791); 4 May 2011 17:44:17 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 May 2011 17:44:03 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id CBE47A2D; Wed, 4 May 2011 19:44:01 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xYm-LHVstyhs; Wed, 4 May 2011 19:44:00 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 6418FA2C; Wed, 4 May 2011 19:44:00 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p44HhxHx007784; Wed, 4 May 2011 19:43:59 +0200 (MEST) From: Rainer Orth To: Anatoly Sokolov Cc: Richard Henderson , gcc-patches@gcc.gnu.org, Subject: Re: [SPARC] Hookize PRINT_OPERAND, PRINT_OPERAND_ADDRESS and PRINT_OPERAND_PUNCT_VALID_P References: <9410569723.20110427221316@post.ru> <4DB98D4D.2050107@redhat.com> <768470406.20110504213221@post.ru> Date: Wed, 04 May 2011 17:44:00 -0000 In-Reply-To: <768470406.20110504213221@post.ru> (Anatoly Sokolov's message of "Wed, 4 May 2011 21:32:21 +0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes 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/msg00332.txt.bz2 Hi Anatoly, > Sorry for my mistake. I think that the patch is obvious, but I have no > capability to test it. > > > * config/sparc/sol.h (ASM_OUTPUT_CALL): Use print_operand target > hook. > > > Index: gcc/config/sparc/sol2.h > =================================================================== > --- gcc/config/sparc/sol2.h (revision 173212) > +++ gcc/config/sparc/sol2.h (working copy) > @@ -172,7 +172,7 @@ > do \ > { \ > fprintf (FILE, "\tcall\t"); \ > - print_operand (FILE, XEXP (DECL_RTL (FN), 0), 0); \ > + targetm.asm_out.print_operand (FILE, XEXP (DECL_RTL (FN), 0), 0); \ > fprintf (FILE, "\n\tnop\n"); \ > } \ > while (0) I thought so, too, but you also need to include target.h in config/sol2.c. I'm currently testing such a patch; will commit tomorrow if bootstrap passes. You could at least test it by cross-building cc1 for sparc-sun-solaris2.10, which failed to link. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University