aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>2005-10-23 22:06:08 +0200
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2005-10-23 20:06:08 +0000
commit17d6e514a126393563bc7d44c44842bbdd13cd87 (patch)
treefb9ac956aecb346dcd0326968f59922a3b56c45c
parentfa8697330dcfe9b7170f9abc7b7eae352c050e26 (diff)
downloadgcc-17d6e514a126393563bc7d44c44842bbdd13cd87.zip
gcc-17d6e514a126393563bc7d44c44842bbdd13cd87.tar.gz
gcc-17d6e514a126393563bc7d44c44842bbdd13cd87.tar.bz2
fpu.c: Add _GNU_SOURCE definition.
* runtime/fpu.c: Add _GNU_SOURCE definition. * config/fpu-glibc.h: Remove __USE_GNU definition. From-SVN: r105822
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/config/fpu-glibc.h1
-rw-r--r--libgfortran/runtime/fpu.c5
3 files changed, 10 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 3666964..1088c76 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
+
+ * runtime/fpu.c: Add _GNU_SOURCE definition.
+ * config/fpu-glibc.h: Remove __USE_GNU definition.
+
2005-10-23 Paul Thomas <pault@gcc.gnu.org>
PR fortran/24384
diff --git a/libgfortran/config/fpu-glibc.h b/libgfortran/config/fpu-glibc.h
index 0a6c9df1..389f905 100644
--- a/libgfortran/config/fpu-glibc.h
+++ b/libgfortran/config/fpu-glibc.h
@@ -33,7 +33,6 @@ Boston, MA 02110-1301, USA. */
feenableexcept function in fenv.h to set individual exceptions
(there's nothing to do that in C99). */
-#define __USE_GNU
#ifdef HAVE_FENV_H
#include <fenv.h>
#endif
diff --git a/libgfortran/runtime/fpu.c b/libgfortran/runtime/fpu.c
index f81a3b0..4a2c1f1 100644
--- a/libgfortran/runtime/fpu.c
+++ b/libgfortran/runtime/fpu.c
@@ -1,3 +1,8 @@
+/* This is needed for fpu-glibc.h, before all other includes */
+#ifdef HAVE_FENV_H
+#define _GNU_SOURCE
+#endif
+
#include "libgfortran.h"
/* We include the platform-dependent code. */