Commit b5cbe7ee by Steven G. Kargl

[multiple changes]

2006-01-13  Steven G. Kargl  <kargls@comcast.net>

        PR fortran/25756
        * symbol.c (gfc_free_st_label): Give variable meaningful name. Remove
        unneeded parenthesis. Fix-up the head of the list (2 lines gleaned
        from g95).

2006-01-13  Bernhard Fischer  <rep.nop@aon.at>

        PR fortran/25756
        * gfortran.dg/label_3.f90: New test.

From-SVN: r109674
parent 47adc016
2006-01-13 Steven G. Kargl <kargls@comcast.net>
PR fortran/25756
* symbol.c (gfc_free_st_label): Give variable meaningful name. Remove
unneeded parenthesis. Fix-up the head of the list (2 lines gleaned
from g95).
2006-01-13 Diego Novillo <dnovillo@redhat.com>
* trans.c (gfc_add_expr_to_block): Do not fold tcc_statement
......
......@@ -1473,21 +1473,25 @@ gfc_get_component_attr (symbol_attribute * attr, gfc_component * c)
occurs. */
void
gfc_free_st_label (gfc_st_label * l)
gfc_free_st_label (gfc_st_label * label)
{
if (l == NULL)
if (label == NULL)
return;
if (l->prev)
(l->prev->next = l->next);
if (label->prev)
label->prev->next = label->next;
if (l->next)
(l->next->prev = l->prev);
if (label->next)
label->next->prev = label->prev;
if (l->format != NULL)
gfc_free_expr (l->format);
gfc_free (l);
if (gfc_current_ns->st_labels == label)
gfc_current_ns->st_labels = label->next;
if (label->format != NULL)
gfc_free_expr (label->format);
gfc_free (label);
}
/* Free a whole list of gfc_st_label structures. */
......
2006-01-13 Bernhard Fischer <rep.nop@aon.at>
PR fortran/25756
* gfortran.dg/label_3.f90: New test.
2006-01-13 Daniel Berlin <dberlin@dberlin.org>
PR tree-optimization/25771
! { dg-do compile }
! PR fortran/25756.
! This used to ICE due to the space after the label.
1 ! { dg-warning "Ignoring statement label in empty statement" }
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment