[gfortran, PR 18540] A few statement label cleanups
Tobias.Schlueter@Physik.Uni-Muenchen.DE
Tobias.Schlueter@Physik.Uni-Muenchen.DE
Wed Jan 18 21:00:00 GMT 2006
Quoting Tobias.Schlueter@Physik.Uni-Muenchen.DE:
> Thanks. I had accidentally sent a preliminary version of the patch in which
> I
> had omitted the initialization of 'cnt' to zero in
> gfc_math_small_literal_int.
> I'll consider readding the initialization obvious, and check this in as
> attached. ChangeLog as before with 'Only set cnt if non-NULL.' removed.
Of course I meant the other part, 'remove superfluous initialization', the
corrected ChangeLog is:
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.
I also took the opportunity to convert the ChangeLog to use latin1 characters,
as they are allowed there[1] and appear in my name.
- Tobi
[1] <http://gcc.gnu.org/ml/gcc/2006-01/msg00580.html>
More information about the Fortran
mailing list