summaryrefslogtreecommitdiff
path: root/libgfortran/configure
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2014-05-12 22:20:50 +0300
committerJanne Blomqvist <jb@gcc.gnu.org>2014-05-12 22:20:50 +0300
commitf7b6856fa4cb73c3b4b4f41a1fbced4c5cf7ebd1 (patch)
tree5e1a25c4efb5695ee9b6e4032fabd70f7ee8d83a /libgfortran/configure
parentdff8943f5465569db3d9f46ceea5ff193c7a5654 (diff)
downloadgcc-f7b6856fa4cb73c3b4b4f41a1fbced4c5cf7ebd1.tar.gz
Use -std=gnu11 instead of -std=gnu99 for libgfortran C code.
2014-05-12 Janne Blomqvist <jb@gcc.gnu.org> * configure.ac (AM_CFLAGS): Use -std=gnu11. (CFLAGS): Likewise. * configure: Regenerated. From-SVN: r210334
Diffstat (limited to 'libgfortran/configure')
-rwxr-xr-xlibgfortran/configure11
1 files changed, 6 insertions, 5 deletions
diff --git a/libgfortran/configure b/libgfortran/configure
index d3ced74e950..8e5db19c8a9 100755
--- a/libgfortran/configure
+++ b/libgfortran/configure
@@ -5769,12 +5769,13 @@ fi
# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
if test "x$GCC" = "xyes"; then
AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
- ## We like to use C99 routines when available. This makes sure that
+ ## We like to use C11 and C99 routines when available. This makes
+ ## sure that
## __STDC_VERSION__ is set such that libc includes make them available.
- AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
+ AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
## Compile the following tests with the same system header contents
## that we'll encounter when compiling our own source files.
- CFLAGS="-std=gnu99 $CFLAGS"
+ CFLAGS="-std=gnu11 $CFLAGS"
fi
@@ -12343,7 +12344,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12346 "configure"
+#line 12347 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12449,7 +12450,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12452 "configure"
+#line 12453 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H