This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: rename CC to GCC in gcc.c comments
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: Andrew Thomas Pinski <pinskia at gmail dot com>
- Cc: Ben Elliston <bje at au1 dot ibm dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 07 Apr 2009 09:14:04 +0200
- Subject: Re: PATCH: rename CC to GCC in gcc.c comments
- References: <1239075755.23774.15.camel@helios> <D67DE5E1-5F2A-4A7A-80E2-789182EA0C20@gmail.com>
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