This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: extern "C" fixes for sunCC
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Marc Glisse <marc dot glisse at inria dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Jan 2013 15:09:51 +0100
- Subject: Re: extern "C" fixes for sunCC
- References: <alpine.DEB.2.02.1212112220230.21043@stedding.saclay.inria.fr> <alpine.DEB.2.02.1301021440220.5061@stedding.saclay.inria.fr>
On Wed, Jan 2, 2013 at 2:45 PM, Marc Glisse <marc.glisse@inria.fr> wrote:
> 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)
The graphite changes are ok.
Thanks,
Richard.
>
> 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 <marc.glisse@inria.fr>
>>
>> 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