Commit 26436493 by Paul Thomas Committed by Bud Davis

re PR fortran/21130 (38822 lines of Fortran 90 takes more than 10 minutes to…

re PR fortran/21130 (38822 lines of Fortran 90 takes more than 10 minutes to compile on a dual 3GHz P4 Linux box with lots of RAM)

2006-03-30  Paul Thomas <paulthomas2@wanadoo.fr>
            Bud Davis  <bdavis9659@sbcglobal.net>

        PR 21130
        * module.c (load_needed): Traverse entire tree before returning.



Co-Authored-By: Bud Davis <bdavis9659@sbcglobal.net>

From-SVN: r112558
parent d3603e8c
2006-03-30 Paul Thomas <paulthomas2@wanadoo.fr>
Bud Davis <bdavis9659@sbcglobal.net>
PR 21130
* module.c (load_needed): Traverse entire tree before returning.
2006-03-30 Roger Sayle <roger@eyesopen.com>
PR middle-end/22375
......
......@@ -3061,16 +3061,17 @@ load_needed (pointer_info * p)
gfc_namespace *ns;
pointer_info *q;
gfc_symbol *sym;
int rv;
rv = 0;
if (p == NULL)
return 0;
if (load_needed (p->left))
return 1;
if (load_needed (p->right))
return 1;
return rv;
rv |= load_needed (p->left);
rv |= load_needed (p->right);
if (p->type != P_SYMBOL || p->u.rsym.state != NEEDED)
return 0;
return rv;
p->u.rsym.state = USED;
......
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