PR fortran/58007
* module.c (skip_list): Don't use default argument value.
(load_derived_extensions, read_module): Update callers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@207152
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-01-27 Mikael Morin <mikael@gcc.gnu.org>
+
+ PR fortran/58007
+ * module.c (skip_list): Don't use default argument value.
+ (load_derived_extensions, read_module): Update callers.
+
2014-01-26 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/58007
2014-01-26 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/58007
/* Skip a list between balanced left and right parens.
/* Skip a list between balanced left and right parens.
- By setting NEST_LEVEL one assumes that a number of NEST_LEVEL opening parens
- have been already parsed by hand, and the remaining of the content is to be
- skipped here. The default value is 0 (balanced parens). */
+ By setting NEST_LEVEL to a non-zero value one assumes that a number of
+ NEST_LEVEL opening parens have been already parsed by hand, and the remaining
+ of the content is to be skipped here. */
-skip_list (int nest_level = 0)
+skip_list (int nest_level)
if (!info || !derived)
{
while (peek_atom () != ATOM_RPAREN)
if (!info || !derived)
{
while (peek_atom () != ATOM_RPAREN)
gfc_symbol *sym;
get_module_locus (&operator_interfaces); /* Skip these for now. */
gfc_symbol *sym;
get_module_locus (&operator_interfaces); /* Skip these for now. */
get_module_locus (&user_operators);
get_module_locus (&user_operators);
- skip_list ();
- skip_list ();
+ skip_list (0);
+ skip_list (0);
/* Skip commons, equivalences and derived type extensions for now. */
/* Skip commons, equivalences and derived type extensions for now. */
- skip_list ();
- skip_list ();
+ skip_list (0);
+ skip_list (0);
get_module_locus (&extensions);
get_module_locus (&extensions);
if (sym == NULL
|| (sym->attr.flavor == FL_VARIABLE && info->u.rsym.ns !=1))
{
if (sym == NULL
|| (sym->attr.flavor == FL_VARIABLE && info->u.rsym.ns !=1))
{
/* First seek to the symbol's component list. */
mio_lparen (); /* symbol opening. */
/* First seek to the symbol's component list. */
mio_lparen (); /* symbol opening. */
- skip_list (); /* skip symbol attribute. */
- skip_list (); /* typespec. */
+ skip_list (0); /* skip symbol attribute. */
+ skip_list (0); /* typespec. */
require_atom (ATOM_INTEGER); /* namespace ref. */
require_atom (ATOM_INTEGER); /* common ref. */
require_atom (ATOM_INTEGER); /* namespace ref. */
require_atom (ATOM_INTEGER); /* common ref. */
- skip_list (); /* formal args. */
+ skip_list (0); /* formal args. */
- skip_list (); /* array_spec. */
+ skip_list (0); /* array_spec. */
require_atom (ATOM_INTEGER); /* result. */
/* not a cray pointer. */
require_atom (ATOM_INTEGER); /* result. */
/* not a cray pointer. */
skip_list (1); /* symbol end. */
}
else
skip_list (1); /* symbol end. */
}
else
/* Some symbols do not have a namespace (eg. formal arguments),
so the automatic "unique symtree" mechanism must be suppressed
/* Some symbols do not have a namespace (eg. formal arguments),
so the automatic "unique symtree" mechanism must be suppressed