[PATCH] D135680: [clang][ARM] follow GCC behavior for defining __SOFTFP__
Ties Stuij via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 11 07:59:05 PDT 2022
stuij created this revision.
Herald added a subscriber: kristof.beyls.
Herald added a project: All.
stuij requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D135680
Files:
clang/lib/Basic/Targets/ARM.cpp
clang/test/Preprocessor/init-arm.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135680.466820.patch
Type: text/x-patch
Size: 32702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221011/cd746c5a/attachment-0001.bin>
More information about the cfe-commits
mailing list