This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: PATCH: rename CC to GCC in gcc.c comments


Andrew Thomas Pinski wrote:
> 
> 
> Sent from my iPhone
> 
> On Apr 6, 2009, at 8:42 PM, Ben Elliston <bje@au1.ibm.com> wrote:
> 
>> While reading gcc.c the other day, I discovered that the comments in
>> this file refer to the compiler driver as `CC'.  Perhaps it is intended
>> to be this generic, but it seemed logical to me that these be changed to
>> `GCC'.
> 
> I think CC here refers to cc1/cc1plus, etc.

No, it does not, cc1 does not see -l arguments:

>> -CC also knows implicitly that arguments starting in `-l' are to be
>> +GCC also knows implicitly that arguments starting in `-l' are to be 
>> treated as compiler output files, and passed to the linker in their 

CC refers to gcc/g++/gcj/gfortran, which means that the change to GCC or
gcc.c is actually more correct.

Paolo


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