]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Use -std=gnu11 instead of -std=gnu99 for libgfortran C code.
authorJanne Blomqvist <jb@gcc.gnu.org>
Mon, 12 May 2014 19:20:50 +0000 (22:20 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Mon, 12 May 2014 19:20:50 +0000 (22:20 +0300)
2014-05-12  Janne Blomqvist  <jb@gcc.gnu.org>

* configure.ac (AM_CFLAGS): Use -std=gnu11.
(CFLAGS): Likewise.
* configure: Regenerated.

From-SVN: r210334

libgfortran/ChangeLog
libgfortran/configure
libgfortran/configure.ac

index 709225c3bd10d69584bd5b4563628d56b817bb8e..f0314d951955087a37a85cea39e350b38a0cccc3 100644 (file)
@@ -1,3 +1,9 @@
+2014-05-12  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       * configure.ac (AM_CFLAGS): Use -std=gnu11.
+       (CFLAGS): Likewise.
+       * configure: Regenerated.
+
 2014-05-11  Tobias Burnus  <burnus@net-b.de>
 
        * caf/libcaf.h (_gfortran_caf_num_images): Change type of
index d3ced74e9506bc2eedecc7983485255f3ba66a0c..8e5db19c8a93a72371ebf17d43ee0647bac25bdc 100755 (executable)
@@ -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
index 24dbf2b4fa5934d37636572eff1f3e4d7034bd99..212628540a24f14065e47341a3e726affcd4cbe3 100644 (file)
@@ -139,12 +139,13 @@ AM_PROG_CC_C_O
 # 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
 AC_SUBST(AM_FCFLAGS)
 AC_SUBST(AM_CFLAGS)