[Patch 4.6] In system.h, wrap include of C++ header in 'extern C++'

Duncan Sands baldrick@free.fr
Fri Jun 15 15:48:00 GMT 2012


Hi Gabriel,

>>> Richard just reminded me that we have two fancy_aborts.
>>> Could you tell which one your code is indirectly using?
>>
>>
>> the one installed as plugin/include/system.h, which seems to be
>> gcc/include/system.h.
>
> OK.  I think that declaration has to have the C language spec.
> Would you prepare a patch for that?

you mean: wrap the fancy_abort declaration in system.h in 'extern C'?
Sure, I will prepare a patch.

Best wishes, Duncan.

>
>>   It is used for example in tree.h here:
>>
>> /* Advance to the next argument.  */
>> static inline void
>> function_args_iter_next (function_args_iterator *i)
>> {
>>   gcc_assert (i->next != NULL_TREE);
>>   i->next = TREE_CHAIN (i->next);
>> }
>>
>> Best wishes, Duncan.



More information about the Gcc-patches mailing list