]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/36495 (libgfortran should be build with FCFLAGS -fimplicit-none)
authorTobias Burnus <burnus@net-b.de>
Fri, 13 Jun 2008 07:10:15 +0000 (09:10 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 13 Jun 2008 07:10:15 +0000 (09:10 +0200)
2008-06-13  Tobias Burnus  <burnus@net-b.de>

       PR fortran/36495
       * configure: Add "-Werror -fimplicit-none" to the AM_FCFLAGS.
       * configure.ac: Ditto.
       * intrinsics/dprod_r8.f90: Add "implicit none".

From-SVN: r136740

libgfortran/ChangeLog
libgfortran/configure
libgfortran/configure.ac
libgfortran/intrinsics/dprod_r8.f90

index dff8dc8a78348d136735a38e466a4eb9c0559ae4..6148eaf6313f6dc94686ca116ac2351442140393 100644 (file)
@@ -1,3 +1,10 @@
+2008-06-13  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/36495
+       * configure.ac (AM_FCFLAGS): Add "-Werror -fimplicit-none".
+       * configure: (generated) ditto.
+       * intrinsics/dprod_r8.f90: Add "implicit none".
+
 2008-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libfortran/36420
index ec1196024126771afac500254610f29797cac749..a973ea28b4f74dd84cc16bce03fe1bbb1e06129d 100755 (executable)
@@ -3396,7 +3396,7 @@ fi
 
 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
 if test "x$GCC" = "xyes"; then
-  AM_FCFLAGS="-I . -Wall -fno-repack-arrays -fno-underscoring"
+  AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
   ## We like to use 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"
index 657ca4f6d9e91129d4632f7ce90adf7df8199b72..47d453aaf5747b1ffd2fa24d284a8979e4feb57d 100644 (file)
@@ -123,7 +123,7 @@ m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
 
 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
 if test "x$GCC" = "xyes"; then
-  AM_FCFLAGS="-I . -Wall -fno-repack-arrays -fno-underscoring"
+  AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
   ## We like to use 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"
index 44c63c41d56bd9cdcecc59b8f9ed62914c7797cf..2feb72f2d5bac5aaf35c59ad4edd494d88a866e8 100644 (file)
@@ -20,6 +20,7 @@
 
 
 elemental function _gfortran_specific__dprod_r8 (p1, p2)
+   implicit none
    real (kind=4), intent (in) :: p1, p2
    real (kind=8) :: _gfortran_specific__dprod_r8