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] Fix PR driver/13211 using -###, warns about unusedlinker file


Andrew Pinski <pinskia@physics.uc.edu> writes:

> On Nov 28, 2003, at 17:57, Andrew Pinski wrote:
>
>> Try the following and you get a warning about unused linker files but
>> the warning is not true at all:
>> touch test.o
>> gcc -### test.o
>>
>> This patch fixes that:
>> ChangeLog:
>> 	* gcc.c (main): The linker also ran
>> 	when verbose_only_flag is true.
>
>
> Based on Zack's and Jim's comments in the bug, here is a new patch.
>
> Ok for 3.3 branch and the mainline?
>
> ChangeLog:
> 	* gcc.c (execute): Increment execution_count when returning
> 	early because verbose_only_flag is true.

I'd like slight wording changes to the comment:

> +          /* If verbose_only_flag, then the execution_count is incremented
> +             because verbose_only_flag should act as the spec was excuted. */

Suggest
             /* verbose_only_flag should act as if the spec was
                executed, so increment execution_count before
                returning.  This prevents spurious warnings about
                unused linker input files, etc.  */

If Jim has no further comments, OK with that change.

zw


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