PATCH: Fix 7086

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Mon Mar 24 16:28:00 GMT 2003


On Sun, 23 Mar 2003, Mark Mitchell wrote:
> PR c++/7086 is a compilation-time issue.  The problem is the quadratic
> behavior in fixup_var_refs.  This patch doesn't fix that problem, but
> it does greatly reduce the number of calls to fixup_var_refs for the
> test case in question [...]
> On the test case in question, this patch improves the compilation time
> from 2.5 minutes to 9 seconds.

Impressive!

I now also retested PR 8361
  http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=8361
and for -O3 your patch also brings a nice speedup there.

In the next days, I'll try to redo all test from that PR with current
mainline and the 3.3 branch in more detail (and --disable-checking
everywhere).

Gerald



More information about the Gcc-patches mailing list