TREE_USED (sym->backend_decl) = 1;
if (sym->attr.assign && GFC_DECL_ASSIGN (sym->backend_decl) == 0)
- {
- gfc_add_assign_aux_vars (sym);
- }
+ gfc_add_assign_aux_vars (sym);
if (sym->ts.type == BT_CLASS && sym->backend_decl)
GFC_DECL_CLASS(sym->backend_decl) = 1;
return sym->backend_decl;
}
+ if (sym->result == sym && sym->attr.assign
+ && GFC_DECL_ASSIGN (sym->backend_decl) == 0)
+ gfc_add_assign_aux_vars (sym);
+
if (sym->backend_decl)
return sym->backend_decl;
else
current_fake_result_decl = build_tree_list (NULL, decl);
+ if (sym->attr.assign)
+ DECL_LANG_SPECIFIC (decl) = DECL_LANG_SPECIFIC (sym->backend_decl);
+
return decl;
}