As clang doesn't support function in-lining, this gcc flag can safely
ignored. Note: some sloppy Makefiles set the flag without a value.
Both of these arguments are now ignored and tests have been updated as appropriate.
Details
- Reviewers
• rafael sylvestre.ledru rnk
Diff Detail
Event Timeline
We have 9 occurrences of this in our Debian rebuilds:
http://clang.debian.net/status.php?version=3.4.2&key=UNKNOWN_ARG
I see two patches in pkgsrc removing use of this and the related -finline-functions-called-once. I don't think this option is popular enough for supporting it.
We have 8 occurrences in Debian of -finline-limit=XXXX and we are already ignoring -finline-limit. I don't see any issue to do the same with the value.
One alternative is to recognize the flag, but warn on it. An easy way to do this with a poor diagnostic experience is to simply add it to our option table, don't put it into clang_ignored_f_Group, and don't check it in the driver. Clang will emit 'warning: argument unused during compilation '-finline-limit=1234''.
For extra credit, we could have a diagnostic like "ignoring GCC optimization tuning flag" and use that for all GCC optimization flags that don't have analogues in Clang/LLVM.
include/clang/Driver/Options.td | ||
---|---|---|
1561 | This should be finline_limit_EQ. |
I am closing this revision because I have submitted a patch that
fixes -finline-limit and more: http://reviews.llvm.org/D4461.
This should be finline_limit_EQ.