On Sun, Jul 26, 2020 at 4:02 AM Andreas Schwab <sch...@linux-m68k.org> wrote:
>
> On Jul 25 2020, Fāng-ruì Sòng wrote:
>
> > On Sat, Jul 25, 2020 at 12:09 AM Andreas Schwab <sch...@linux-m68k.org> 
> > wrote:
> >>
> >> On Jul 24 2020, Fangrui Song via Gcc-patches wrote:
> >>
> >> > This is to mimick nearly lines. collect2 should filter out options like 
> >> > -fno-lto, -flto, -fuse-ld= before passing to ld. -f* are handled by case 
> >> > 'f'. --ld-path needs its own `else if`.
> >>
> >> If you handle --ld-path as -fld-path then you don't need that.
> >>
> >
> > --ld-path is a deliberate design choice. -f* is not suitable
> > (https://sourceware.org/pipermail/gcc/2020-July/233089.html )
> > clang has several other --*-path= (e.g. --cuda-path)
>
> I don't agree with that opinion.  --foo and -ffoo are equivalent and
> interchangeable.
>
> Andreas.

For options only affecting linking, -f* are minority.

-fgnu-tm enables language-level constructs.
-flto/-fopenmp/-fprofile-arcs/-fsanitize=*/etc affect code generation.
-fuse-ld= is an exception. The other options (the majority) don't
start with -f.

Reply via email to