If the driver is only given -msoft-float/-mfloat-abi=soft or -msingle-float,
we should refrain from propagating -mfpxx, unless it was explicitly given on the
command line.
Details
Details
- Reviewers
dsanders atanasyan - Commits
- rG94ea6867cce1: [mips] Don't propagate -mfpxx by default if soft/single float were also set.
rC239818: [mips] Don't propagate -mfpxx by default if soft/single float were also set.
rL239818: [mips] Don't propagate -mfpxx by default if soft/single float were also set.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with a shouldUseFPXX() or similar as described below.
lib/Driver/Tools.cpp | ||
---|---|---|
5777–5781 | While the effect is functionally correct, this bit is inconsistent with the question 'Is FPXX enabled by default?'. When these options are given it's still the default but the options overrule it. Could you hoist this logic out into a function named something like shouldUseFPXX()?. |
While the effect is functionally correct, this bit is inconsistent with the question 'Is FPXX enabled by default?'. When these options are given it's still the default but the options overrule it. Could you hoist this logic out into a function named something like shouldUseFPXX()?.