From: Tobias Burnus Date: Fri, 13 Jun 2008 07:10:15 +0000 (+0200) Subject: re PR fortran/36495 (libgfortran should be build with FCFLAGS -fimplicit-none) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3e9b6abf80f91814ad173cafd0d6a5fb8151f11;p=gcc.git re PR fortran/36495 (libgfortran should be build with FCFLAGS -fimplicit-none) 2008-06-13 Tobias Burnus 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 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index dff8dc8a783..6148eaf6313 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,10 @@ +2008-06-13 Tobias Burnus + + 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 PR libfortran/36420 diff --git a/libgfortran/configure b/libgfortran/configure index ec119602412..a973ea28b4f 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -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" diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index 657ca4f6d9e..47d453aaf57 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -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" diff --git a/libgfortran/intrinsics/dprod_r8.f90 b/libgfortran/intrinsics/dprod_r8.f90 index 44c63c41d56..2feb72f2d5b 100644 --- a/libgfortran/intrinsics/dprod_r8.f90 +++ b/libgfortran/intrinsics/dprod_r8.f90 @@ -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