[PATCH] D30920: Do not pass -Os and -Oz to the Gold plugin
Mehdi AMINI via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 16 11:22:10 PDT 2017
mehdi_amini added a comment.
In https://reviews.llvm.org/D30920#702979, @pirama wrote:
> The driver (accepts, but) ignores Os and other optimization flags for non-lto link-only actions. That it has an effect for LTO is seems to be an implementation detail. Since optimization flags are compiler-only options, and Clang already silently (without a warning) ignores these flags during link-only invocations, silently transforming them when passing to the plugin seems reasonable.
No it is not reasonable to me. The users ask for A and we're doing B.
https://reviews.llvm.org/D30920
More information about the cfe-commits
mailing list