+2004-07-10 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
+
+ * trans-decl.c (gfc_create_module_variable): Nothing to do if
+ symbol is in common, because we ...
+ (gfc_generate_module_vars): Call gfc_trans_common.
+
2004-07-10 Paul Brook <paul@codesourcery.com>
* trans-array.c (gfc_build_null_descriptor): New function.
&& (sym->attr.flavor != FL_PARAMETER || sym->attr.dimension == 0))
return;
- /* Don't generate variables from other modules. */
- if (sym->attr.use_assoc)
+ /* Don't generate variables from other modules. Variables from
+ COMMONs will already have been generated. */
+ if (sym->attr.use_assoc || sym->attr.in_common)
return;
if (sym->backend_decl)
/* Check if the frontend left the namespace in a reasonable state. */
assert (ns->proc_name && !ns->proc_name->tlink);
+ /* Generate COMMON blocks. */
+ gfc_trans_common (ns);
+
/* Create decls for all the module variables. */
gfc_traverse_ns (ns, gfc_create_module_variable);
}
+2004-07-10 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
+
+ * gfortran.fortran-torture/execute/common_2.f90: Add check for
+ access to common var from module.
+
2004-07-10 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/16336