This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix C global decl handling regression in 4.0.2 from 4.0.1


On Thu, Sep 29, 2005 at 11:53:24AM +0200, Paolo Bonzini wrote:
> 
> >+
> >+  do
> >+    {
> >+      reconsider = false;
> >+      for (decl = globals; decl; decl = TREE_CHAIN (decl))
> >+	reconsider |= wrapup_global_declaration_2 (decl);
> >+    }
> >+  while (reconsider);
> 
> Is this worst case quadratic?

Yes.  The same complexity as toplev.c (wrapup_global_declarations)
has (used by all frontends but C/ObjC and used by C/ObjC until a few days
ago).

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]