This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: collect2 compiles C with g77 !


>>>>> "Craig" == Craig Burley <burley@gnu.org> writes:

 >> Actually, the language specific drivers (g77, g++) aren't supposed
 >> to call other languages unless explicitly asked for by the user
 >> (-x option).

 Craig> I don't understand this, or maybe the rationale behind it.
>...
 Craig> Another point -- g77 has always, since public release, handled
 Craig> compiling non-Fortran languages just fine, as far as I'm
 Craig> aware.  Same with g++ up through gcc 2.7, I believe, since I
 Craig> originally created g77.c by simply copying g++.c and editing
 Craig> it.  It might well be the case, therefore, that existing users
 Craig> have scripts that use g77 or g++ to compile multi-lingual
 Craig> programs, and I wouldn't recommend we do anything to cause
 Craig> those scripts to stop working.

I know for a fact that there are scripts (makefiles) out there that
assume g++ is capable of taking the same switches that gcc understands
(i.e., g++ is essentially a synonym for gcc).  I had to do repairs to
those makefiles to get some packages to build recently.

	paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]