This is for fixing tests with out-of-tree compilers that default to -fno-integrated-as.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
3559 ↗ | (On Diff #214227) | We shouldn't claim the OPT_m flags if we don't use integrated-as. Claiming Wa_COMMA and Xassembler makes sense to me. |
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
3559 ↗ | (On Diff #214227) | If we do not, then one of the tests you included in this change will fail if a platform defaults to not using the integrated assembler. Should I remove this change and just update the test to explicitly set -fintegrated-as/-fno-integrated-as and test for the expected result? |
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
3559 ↗ | (On Diff #214227) | Yes, tests for the -m flags should pass -fintegrated-as. Sorry about missing that. Out of curiosity, which platforms still use external assemblers by default? |
Reverted changes in Clang.cpp and updated test to expect warning when an external assembler is requested.
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
3559 ↗ | (On Diff #214227) | Thanks, I have done this and uploaded a new revision with the test changes. We use an external assembler internally for some legacy projects/reasons. |
Thanks! Looks like the change to the cpp file got lost? I only see the test change now.
Yes, I abandoned that change as I thought you said it was unnecessary and just left the test changes, but updated the test changes to look for the warning when a -m option is used with -fno-integrated-as.
Oh, I just re-read your comments and realized that we should claim the Wa_COMMA and Xassembler arguments, I'll reinstate the change to just claim those.
Actually it seems your original change already implemented that, so I think only the updated test change that I made is needed. Let me know if you disagree with that.
Something like "fix test for out-of-tree targets that don't enable the internal assembler by default by explicitly passing -fintegrated-as everywhere" or something like that.
Thanks. I had to figure out how to update the summary as I have never done that before!
Let me know if you have any other objections, otherwise, I'll make a further update to the summary just before I commit the change.
lgtm
Thanks. I moved your new description into the (previously still stale) revision title and put in a new description. lgtm.