diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-13 07:10:15 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-13 07:10:15 +0000 |
commit | 8655d9cc569435b39d9e37a7ceabf5dae2396e71 (patch) | |
tree | f006eb80e099a37df58f8a47b9e995eea1993229 /libgfortran | |
parent | 6b8ae4a5721f30d3bb63555285e77d8c5fc5f591 (diff) | |
download | gcc-8655d9cc569435b39d9e37a7ceabf5dae2396e71.tar.gz |
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".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136740 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 7 | ||||
-rwxr-xr-x | libgfortran/configure | 2 | ||||
-rw-r--r-- | libgfortran/configure.ac | 2 | ||||
-rw-r--r-- | libgfortran/intrinsics/dprod_r8.f90 | 1 |
4 files changed, 10 insertions, 2 deletions
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 <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 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 |