https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bbf7b5b72a2c3fe418833…
commit bbf7b5b72a2c3fe41883371fb322f114d3f6a3d4
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Mon Feb 1 19:53:13 2021 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Mon Feb 1 19:57:12 2021 +0100
[CRT/x64] Correctly implement fabs for GCC
Note that MSVC does not recognize 'fabs' as a valid label name.
See fee844b6ffcaf491beb3a7ec5d38e6c466fd0693 and
2f7cf157d8e7031d1f91d083e775febe2eb9dc94
---
sdk/lib/crt/math/amd64/fabs.S | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sdk/lib/crt/math/amd64/fabs.S b/sdk/lib/crt/math/amd64/fabs.S
index 0900acceed9..fb6db3b32e3 100644
--- a/sdk/lib/crt/math/amd64/fabs.S
+++ b/sdk/lib/crt/math/amd64/fabs.S
@@ -13,8 +13,14 @@
/* CODE **********************************************************************/
.code64
+#ifdef _USE_ML
+/* fabs is now allowed as label name, so create _fabs instead and alias fabs to it */
PUBLIC _fabs
_fabs:
+#else
+PUBLIC fabs
+fabs:
+#endif
UNIMPLEMENTED fabs
ret