collect2 compiles C with g77 !

Jason Merrill jason@cygnus.com
Wed Nov 26 00:57:00 GMT 1997


>>>>> Jeffrey A Law <law@cygnus.com> writes:

>   In message < u97m9wgnfo.fsf@yorick.cygnus.com >you write:
>> How about passing -x c to sub-compiles?

> Which would then mean we could zap the #ifdef __cplus_plus gunk in the
> file collect2 builds and compiles.

Yep.

> My only concern was that there might be cases where it actually needed
> to call the same language (c/c++) for a sub-compile that was used to
> call collect2 initially.

For -frepo, that is the case.  And you probably want to use the same driver
anyway, because there's no reliable way to find the corresponding gcc driver.

Jason



More information about the Gcc mailing list