extern "C" fixes for sunCC
Wed Jan 2 14:09:00 GMT 2013
On Wed, Jan 2, 2013 at 2:45 PM, Marc Glisse <firstname.lastname@example.org> wrote:
> (I'll re-test since there have been changes around gmp.h inclusion)
The graphite changes are ok.
> On Tue, 11 Dec 2012, Marc Glisse wrote:
>> 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 <email@example.com>
>> PR bootstrap/50167
>> PR bootstrap/50177
>> * line-map.c (get_combined_adhoc_loc): Cast to extern "C" type.
>> * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
>> * graphite-poly.c (debug_gmp_value): Likewise.
> Marc Glisse
More information about the Gcc-patches