This is the mail archive of the
mailing list for the GCC project.
Re: [Patch, PR 57801] Waste work in resolve_variable()
- From: Jeff Law <law at redhat dot com>
- To: pchang9 at cs dot wisc dot edu
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Mon, 29 Jul 2013 13:09:19 -0600
- Subject: Re: [Patch, PR 57801] Waste work in resolve_variable()
- References: <40d845468ae8e260ff740716b1258376 dot squirrel at webmail dot cs dot wisc dot edu>
On 07/23/2013 03:39 PM, email@example.com wrote:
The problem appears in revision 201034 in version 4.9. I attached a
one-line patch that fixes it. I also reported this problem
Bootstrap and regression-tested on x86_64-linux.
In method "resolve_variable()" in gcc/fortran/resolve.c, the loop on
line 4908 should break immediately after "seen" is set to "true".
2013-07-23 Chang <firstname.lastname@example.org>
* resolve.c (resolve_variable): Exit loop after setting seen.