Commit adede54c by Tobias Burnus Committed by Tobias Burnus

class.c (gfc_find_intrinsic_vtab): Removed unused var.

2013-04-15  Tobias Burnus  <burnus@net-b.de>

        * class.c (gfc_find_intrinsic_vtab): Removed unused var.
        * dependency.c (check_data_pointer_types): Fix check.
        * frontend-passes.c (check_data_pointer_types): Remove
        superfluous statement.
        * parse.c (decode_omp_directive): Add missing break.
        * resolve.c (resolve_typebound_subroutine: Free variable.
        * trans-decl.c (create_function_arglist): Correct condition.

From-SVN: r197961
parent 811b72f9
2013-04-15 Tobias Burnus <burnus@net-b.de>
* class.c (gfc_find_intrinsic_vtab): Removed unused var.
* dependency.c (check_data_pointer_types): Fix check.
* frontend-passes.c (check_data_pointer_types): Remove
superfluous statement.
* parse.c (decode_omp_directive): Add missing break.
* resolve.c (resolve_typebound_subroutine: Free variable.
* trans-decl.c (create_function_arglist): Correct condition.
2013-04-14 Mikael Morin <mikael@gcc.gnu.org> 2013-04-14 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/56816 PR fortran/56816
......
...@@ -2480,7 +2480,7 @@ gfc_symbol * ...@@ -2480,7 +2480,7 @@ gfc_symbol *
gfc_find_intrinsic_vtab (gfc_typespec *ts) gfc_find_intrinsic_vtab (gfc_typespec *ts)
{ {
gfc_namespace *ns; gfc_namespace *ns;
gfc_symbol *vtab = NULL, *vtype = NULL, *found_sym = NULL, *def_init = NULL; gfc_symbol *vtab = NULL, *vtype = NULL, *found_sym = NULL;
gfc_symbol *copy = NULL, *src = NULL, *dst = NULL; gfc_symbol *copy = NULL, *src = NULL, *dst = NULL;
int charlen = 0; int charlen = 0;
...@@ -2689,8 +2689,6 @@ cleanup: ...@@ -2689,8 +2689,6 @@ cleanup:
gfc_commit_symbol (vtab); gfc_commit_symbol (vtab);
if (vtype) if (vtype)
gfc_commit_symbol (vtype); gfc_commit_symbol (vtype);
if (def_init)
gfc_commit_symbol (def_init);
if (copy) if (copy)
gfc_commit_symbol (copy); gfc_commit_symbol (copy);
if (src) if (src)
......
...@@ -1200,7 +1200,7 @@ check_data_pointer_types (gfc_expr *expr1, gfc_expr *expr2) ...@@ -1200,7 +1200,7 @@ check_data_pointer_types (gfc_expr *expr1, gfc_expr *expr2)
bool seen_component_ref; bool seen_component_ref;
if (expr1->expr_type != EXPR_VARIABLE if (expr1->expr_type != EXPR_VARIABLE
|| expr1->expr_type != EXPR_VARIABLE) || expr2->expr_type != EXPR_VARIABLE)
return false; return false;
sym1 = expr1->symtree->n.sym; sym1 = expr1->symtree->n.sym;
......
...@@ -1045,8 +1045,6 @@ combine_array_constructor (gfc_expr *e) ...@@ -1045,8 +1045,6 @@ combine_array_constructor (gfc_expr *e)
newbase = NULL; newbase = NULL;
e->expr_type = EXPR_ARRAY; e->expr_type = EXPR_ARRAY;
c = gfc_constructor_first (oldbase);
for (c = gfc_constructor_first (oldbase); c; for (c = gfc_constructor_first (oldbase); c;
c = gfc_constructor_next (c)) c = gfc_constructor_next (c))
{ {
......
...@@ -621,6 +621,7 @@ decode_omp_directive (void) ...@@ -621,6 +621,7 @@ decode_omp_directive (void)
match ("taskyield", gfc_match_omp_taskyield, ST_OMP_TASKYIELD); match ("taskyield", gfc_match_omp_taskyield, ST_OMP_TASKYIELD);
match ("threadprivate", gfc_match_omp_threadprivate, match ("threadprivate", gfc_match_omp_threadprivate,
ST_OMP_THREADPRIVATE); ST_OMP_THREADPRIVATE);
break;
case 'w': case 'w':
match ("workshare", gfc_match_omp_workshare, ST_OMP_WORKSHARE); match ("workshare", gfc_match_omp_workshare, ST_OMP_WORKSHARE);
break; break;
......
...@@ -5820,6 +5820,8 @@ resolve_typebound_subroutine (gfc_code *code) ...@@ -5820,6 +5820,8 @@ resolve_typebound_subroutine (gfc_code *code)
correct typespec. */ correct typespec. */
code->expr1->ts = ts; code->expr1->ts = ts;
} }
else if (new_ref)
gfc_free_ref_list (new_ref);
return true; return true;
} }
......
...@@ -2146,7 +2146,7 @@ create_function_arglist (gfc_symbol * sym) ...@@ -2146,7 +2146,7 @@ create_function_arglist (gfc_symbol * sym)
hence, the optional status cannot be transfered via a NULL pointer. hence, the optional status cannot be transfered via a NULL pointer.
Thus, we will use a hidden argument in that case. */ Thus, we will use a hidden argument in that case. */
else if (f->sym->attr.optional && f->sym->attr.value else if (f->sym->attr.optional && f->sym->attr.value
&& !f->sym->attr.dimension && !f->sym->ts.type != BT_CLASS && !f->sym->attr.dimension && f->sym->ts.type != BT_CLASS
&& f->sym->ts.type != BT_DERIVED) && f->sym->ts.type != BT_DERIVED)
{ {
tree tmp; tree tmp;
......
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