[cfe-dev] Unsupported options in FOSS

Rafael Espíndola rafael.espindola at gmail.com
Mon Oct 21 10:59:12 PDT 2013


On 21 October 2013 12:03, Joerg Sonnenberger <joerg at britannica.bec.de> wrote:
> Hi all,
> as a result of Rafael's r192808, clang is now rejecting unknown options.
> A follow up added dummy versions for -fexpensive-optimizations and
> -minline-all-stringops to work around fallout. I've used the original
> version without r192521 in pkgsrc to see how much fallout we have and
> whether we want to workaround some issues.

Thanks!

> Not included are various places that expect -R to passed down to the
> linker.

That is odd. With gcc I get

$ gcc -R test.o -o test.so -shared
gcc: error: unrecognized command line option ‘-R’

> From the perspective of minimizing fallout, -fstrength-reduce is the
> single biggest item after -R, but I am still not sure whether we still
> want to bother.

I will send a patch with at least -fstrength-reduce. Looks like gcc
just ignores it these days.

Cheers,
Rafael




More information about the cfe-dev mailing list