[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 869fd439 6/6: Avoid "pragma GCC" with clang
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 869fd439 6/6: Avoid "pragma GCC" with clang |
Date: |
Sun, 22 May 2022 11:33:06 -0400 (EDT) |
branch: master
commit 869fd439b973352cdd548373a8e4bdc0496b454f
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Avoid "pragma GCC" with clang
See:
https://lists.nongnu.org/archive/html/lmi/2022-05/msg00031.html
This seems to close the remainder of commits/ec53465f7... in PR210.
---
fdlibm_expm1.c | 4 ++--
fdlibm_log1p.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/fdlibm_expm1.c b/fdlibm_expm1.c
index a94315ce..06802eaa 100644
--- a/fdlibm_expm1.c
+++ b/fdlibm_expm1.c
@@ -32,14 +32,14 @@
#include <stdint.h>
-#if defined __GNUC__
+#if defined LMI_GCC
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wfloat-conversion"
# pragma GCC diagnostic ignored "-Wsign-conversion"
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
# pragma GCC diagnostic ignored "-Wunsuffixed-float-constants"
# pragma GCC diagnostic ignored "-Wunused-macros"
-#endif // defined __GNUC__
+#endif // defined LMI_GCC
/* @(#)fdlibm.h 1.5 04/04/22 */
/*
diff --git a/fdlibm_log1p.c b/fdlibm_log1p.c
index d6c18b2a..cccfe774 100644
--- a/fdlibm_log1p.c
+++ b/fdlibm_log1p.c
@@ -32,12 +32,12 @@
#include <stdint.h>
-#if defined __GNUC__
+#if defined LMI_GCC
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
# pragma GCC diagnostic ignored "-Wunsuffixed-float-constants"
# pragma GCC diagnostic ignored "-Wunused-macros"
-#endif // defined __GNUC__
+#endif // defined LMI_GCC
/* @(#)fdlibm.h 1.5 04/04/22 */
/*
- [lmi-commits] [lmi] master updated (82468e66 -> 869fd439), Greg Chicares, 2022/05/22
- [lmi-commits] [lmi] master 3539d95d 1/6: Allow another common macro, Greg Chicares, 2022/05/22
- [lmi-commits] [lmi] master 26ed20eb 4/6: Get rid of another macro, Greg Chicares, 2022/05/22
- [lmi-commits] [lmi] master 869fd439 6/6: Avoid "pragma GCC" with clang,
Greg Chicares <=
- [lmi-commits] [lmi] master 34f7a991 5/6: Adapt to a difference between clang and gcc, Greg Chicares, 2022/05/22
- [lmi-commits] [lmi] master adc03db3 2/6: Replace a macro with an equivalent predefined by gcc, Greg Chicares, 2022/05/22
- [lmi-commits] [lmi] master 0db24270 3/6: Use gcc-predefined endianness macros consistently, Greg Chicares, 2022/05/22