From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2776 invoked by alias); 5 May 2011 09:11:59 -0000 Received: (qmail 2762 invoked by uid 22791); 5 May 2011 09:11:57 -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; Thu, 05 May 2011 09:11:42 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 6BD41663; Thu, 5 May 2011 11:11:40 +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 EztLfIu6RItI; Thu, 5 May 2011 11:11:38 +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 553B1662; Thu, 5 May 2011 11:11:38 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p459BbsI008008; Thu, 5 May 2011 11:11:37 +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: Thu, 05 May 2011 09:15:00 -0000 In-Reply-To: (Rainer Orth's message of "Wed, 04 May 2011 19:43:59 +0200") 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/msg00382.txt.bz2 Hi Anatoly, > > 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. this is the patch I've checked in after it passed sparc-sun-solaris2.11 andi i386-pc-solaris2.11 bootstrap. Rainer 2011-05-05 Rainer Orth * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use targetm.asm_out.print_operand. * config/sol2.c: Include target.h. diff --git a/gcc/config/sol2.c b/gcc/config/sol2.c --- a/gcc/config/sol2.c +++ b/gcc/config/sol2.c @@ -25,6 +25,7 @@ along with GCC; see the file COPYING3. #include "output.h" #include "tm.h" #include "rtl.h" +#include "target.h" #include "tm_p.h" #include "diagnostic-core.h" #include "ggc.h" diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h --- a/gcc/config/sparc/sol2.h +++ b/gcc/config/sparc/sol2.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GCC, for SPARC running Solaris 2 Copyright 1992, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, - 2006, 2007, 2008, 2010 Free Software Foundation, Inc. + 2006, 2007, 2008, 2010, 2011 Free Software Foundation, Inc. Contributed by Ron Guilmette (rfg@netcom.com). Additional changes by David V. Henkel-Wallace (gumby@cygnus.com). @@ -172,7 +172,7 @@ along with GCC; see the file COPYING3. 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) -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University