From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2146 invoked by alias); 2 Jan 2013 13:45:30 -0000 Received: (qmail 2080 invoked by uid 22791); 2 Jan 2013 13:45:28 -0000 X-SWARE-Spam-Status: No, hits=-7.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail4-relais-sop.national.inria.fr (HELO mail4-relais-sop.national.inria.fr) (192.134.164.105) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Jan 2013 13:45:23 +0000 Received: from stedding.saclay.inria.fr ([193.55.250.194]) by mail4-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 02 Jan 2013 14:45:21 +0100 Received: from glisse (helo=localhost) by stedding.saclay.inria.fr with local-esmtp (Exim 4.80) (envelope-from ) id 1TqOdD-0008Vf-E8 for gcc-patches@gcc.gnu.org; Wed, 02 Jan 2013 14:45:19 +0100 Date: Wed, 02 Jan 2013 13:45:00 -0000 From: Marc Glisse To: gcc-patches@gcc.gnu.org Subject: Re: extern "C" fixes for sunCC In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: 2013-01/txt/msg00038.txt.bz2 Ping http://gcc.gnu.org/ml/gcc-patches/2012-12/msg00746.html (I'll re-test since there have been changes around gmp.h inclusion) On Tue, 11 Dec 2012, Marc Glisse wrote: > Hello, > > this patch should help if we ever want to use sunCC to initiate a bootstrap, > though I didn't test with sunCC. Note that using gmp_fprintf means we have to > include stdio.h before gmp.h. I didn't investigate how, but this seems to > already be the case :-) The reallocator cast is just a hack, but the point > here is only to help sunCC, making gcc extern "C"-clean is a larger task... > > Passes bootstrap+testsuite on x86_64-linux using the system's gcc (graphite > is enabled, don't know if this particular code is exercised). > > 2012-12-12 Marc Glisse > > PR bootstrap/50167 > PR bootstrap/50177 > libcpp/ > * line-map.c (get_combined_adhoc_loc): Cast to extern "C" type. > gcc/ > * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf. > * graphite-poly.c (debug_gmp_value): Likewise. -- Marc Glisse