RFA: Pass --help= switch on to sub-processes

Brooks Moses brooks.moses@codesourcery.com
Wed Mar 28 18:25:00 GMT 2007

Nick Clifton wrote:
>   Please may I apply the following patch to fix PR driver/31353 ?  It
>   fixes the gcc driver so that --help=target is passed on to the
>   pre-processor, assembler and linker as --target-help, and any other
>   --help=... option is just passed on as --help.  (Which was the
>   nearest equivalent in those subprocesses).

Note that I had already posted a patch to fix this:

(Unfortunately, the patch tracker didn't notice, so it didn't get copied 
to the PR.  Sorry about that!)

I don't think that passing the --help= option along to the assembler and 
linker is correct; if I call "gcc --help=fortran", I don't want a big 
long list of assembler and linker options.

Also, I'm not sure about passing --target-help along for --help=target, 
either, since the assembler and linker won't respect the filtering if 
someone requests it.  I could be much more easily persuaded on that, 

- Brooks

More information about the Gcc-patches mailing list