[all-commits] [llvm/llvm-project] 95bbe9: [clang][ARM] follow GCC behavior for defining __SO...
Ties Stuij via All-commits
all-commits at lists.llvm.org
Tue Oct 18 06:38:31 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 95bbe9a1930886cffc79f1f5b953f5aafff1557f
https://github.com/llvm/llvm-project/commit/95bbe9a1930886cffc79f1f5b953f5aafff1557f
Author: Ties Stuij <ties.stuij at arm.com>
Date: 2022-10-18 (Tue, 18 Oct 2022)
Changed paths:
M clang/lib/Basic/Targets/ARM.cpp
M clang/test/Preprocessor/init-arm.c
Log Message:
-----------
[clang][ARM] follow GCC behavior for defining __SOFTFP__
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
Reviewed By: pratlucas
Differential Revision: https://reviews.llvm.org/D135680
More information about the All-commits
mailing list