This patch changes clang driver to pass subtarget feature "+reserve-x18" instead of passing backend option "-aarch64-reserve-x18". This is needed since backend options do not make it to the backend when doing LTO.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Do we accept the inverse option here? (If not, why not?) If so, this will
add it in places it isn't supposed to go.
-eric
Comment Actions
This part was committed in r227062 for ffixed-x18. I don't think adding an inverse option fno-fixed-x18 was discussed when the original patch was reviewed:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20150119/121916.html
ffixed-r9 doesn't have an inverse option either.
Comment Actions
It doesn't look like there was any particular reason for not defining an inverse option that cancels ffixed-x18, but we can add one in Options.td if it's important to do so.
Comment Actions
Fine with me either way, just means that if you want to turn it off it'll require some more changes. I don't think it's a problem though.