GCC behavior regarding defining SOFTFP when (implicitly) specifying
-mfloat-abi=softfp:
- compile without (implicit) FP: define SOFTFP
- compile with (implicit) FP: don't define SOFTFP
Currently Clang doesn't define SOFTFP when softfp is specified, either with
or without FP. This patch brings Clang in line with GCC behavior.
This was raised by itaig1 over on Github:
https://github.com/llvm/llvm-project/issues/55755
I believe this RUN line won't covered the new condition added to clang/lib/Basic/Targets/ARM.cpp above, as it sets +soft-float.
Can you add an extra test without that option enabled?