Forward GCC '-v' command-line option to binutils assembler, linker (was: [PING] nvptx: forward '-v' command-line option to assembler, linker)

Nick Clifton nickc@redhat.com
Thu Sep 22 11:32:00 GMT 2022


Hi Thomas,


>>> +/* Linker supports '-v' option.  */
>>> +#define LINK_SPEC "%{v}"
> 
> ..., Tom rightfully asked:
> 
>> [...] I wonder, normally we don't pass -v to ld, and need -Wl,-v for
>> that.
> 
> So, on my quest for making things uniform/simple, I now wonder: should we
> also forward GCC '-v' to binutils linker, or is there a reason to not do
> that?

Not really no.  Historically of course this has not been done, so changing
it now might surprise a few users.  But it should not be that big of an
issue.


>> So, any particular reason why we would do things differently for
>> nvptx?

Nope, none at all.

Harmonizing the effect of the -v option sounds like a good idea to me.

Cheers
   Nick



More information about the Gcc mailing list