diff options
author | Tobias Schlüter <tobi@gcc.gnu.org> | 2006-01-18 21:54:49 +0100 |
---|---|---|
committer | Tobias Schlüter <tobi@gcc.gnu.org> | 2006-01-18 21:54:49 +0100 |
commit | 5cf54585496004fc5b65991d0a7f586bbe9d4a89 (patch) | |
tree | d82509409506532bc64cf462617e77ad272677ad /gcc/fortran/primary.c | |
parent | 61da04bdada39d393c0ca6cd006099db7ada4ced (diff) | |
download | gcc-5cf54585496004fc5b65991d0a7f586bbe9d4a89.zip gcc-5cf54585496004fc5b65991d0a7f586bbe9d4a89.tar.gz gcc-5cf54585496004fc5b65991d0a7f586bbe9d4a89.tar.bz2 |
re PR fortran/18540 (Jumping into blocks gives error rather than warning)
PR fortran/18540
PR fortran/18937
* gfortran.h (BBT_HEADER): Move definition up.
(gfc_st_label): Add BBT_HEADER, remove 'prev' and 'next'.
* io.c (format_asterisk): Adapt initializer.
* resolve.c (resolve_branch): Allow FORTRAN 66 cross-block GOTOs
as extension.
* symbol.c (compare_st_labels): New function.
(gfc_free_st_label, free_st_labels, gfc_get_st_label): Convert to
using balanced binary tree.
* decl.c (match_char_length, gfc_match_old_kind_spec): Do away
with 'cnt'.
(warn_unused_label): Adapt to binary tree.
* match.c (gfc_match_small_literal_int): Only set cnt if non-NULL.
* primary.c (match_kind_param): Do away with cnt.
Also converted the ChangeLog to use latin1 characters.
From-SVN: r109914
Diffstat (limited to 'gcc/fortran/primary.c')
-rw-r--r-- | gcc/fortran/primary.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c index b60e0c1..56cff2c 100644 --- a/gcc/fortran/primary.c +++ b/gcc/fortran/primary.c @@ -1,6 +1,6 @@ /* Primary expression subroutines - Copyright (C) 2000, 2001, 2002, 2004, 2005 Free Software Foundation, - Inc. + Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006 Free Software + Foundation, Inc. Contributed by Andy Vaught This file is part of GCC. @@ -40,10 +40,8 @@ match_kind_param (int *kind) gfc_symbol *sym; const char *p; match m; - int cnt; - /* cnt is unused, here. */ - m = gfc_match_small_literal_int (kind, &cnt); + m = gfc_match_small_literal_int (kind, NULL); if (m != MATCH_NO) return m; |