Commit 049e4fb0 by Francois-Xavier Coudert Committed by François-Xavier Coudert

re PR fortran/29459 (Spurious warnings about anonymous variables)

	PR fortran/29459
	* trans.c (gfc_create_var_np): Do not emit warnings for
	anonymous variables.

From-SVN: r127513
parent ee5d176a
2007-08-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 2007-08-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/29459
* trans.c (gfc_create_var_np): Do not emit warnings for
anonymous variables.
2007-08-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/33066 PR fortran/33066
* decl.c (gfc_get_type_attr_spec): Fix whitespace. * decl.c (gfc_get_type_attr_spec): Fix whitespace.
(gfc_match_derived_decl): Fix logic. (gfc_match_derived_decl): Fix logic.
......
...@@ -102,7 +102,15 @@ remove_suffix (char *name, int len) ...@@ -102,7 +102,15 @@ remove_suffix (char *name, int len)
tree tree
gfc_create_var_np (tree type, const char *prefix) gfc_create_var_np (tree type, const char *prefix)
{ {
return create_tmp_var_raw (type, prefix); tree t;
t = create_tmp_var_raw (type, prefix);
/* No warnings for anonymous variables. */
if (prefix == NULL)
TREE_NO_WARNING (t) = 1;
return t;
} }
......
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