From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24634 invoked by alias); 21 Oct 2002 20:40:20 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 24627 invoked from network); 21 Oct 2002 20:40:17 -0000 Received: from unknown (HELO mail.dabney.com) (65.205.145.178) by sources.redhat.com with SMTP; 21 Oct 2002 20:40:17 -0000 Received: (qmail 26592 invoked from network); 21 Oct 2002 19:54:08 -0000 Received: from unknown (HELO stonewall.dabney.com) (65.205.145.181) by mail.dabney.com with SMTP; 21 Oct 2002 19:54:08 -0000 Date: Mon, 21 Oct 2002 13:40:00 -0000 From: Charles Subject: Re[2]: Extremely long compile times To: John Carter cc: "gcc-help@gcc.gnu.org" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Disposition: INLINE References: In-Reply-To: Organization: QualiTech Engineering X-SW-Source: 2002-10/txt/msg00256.txt.bz2 Message-ID: <20021021134000.qscY7dYgFqwoJw048vcNScjKKIH-lmprAweVbeopy4k@z> Thanks, much, John. Moving the variables outside of "main" fixed the problem. Thanks again. Charles On Mon, 21 Oct 2002 09:13:01 +1300 (NZDT) John Carter wrote: > On Fri, 18 Oct 2002, Charles wrote: > > > I've tried this with both gcc 3.1.1 and gcc 3.2. This particular > program > > takes over 2 hours to compile. > ... > It could be that gcc is doing a linear search somewhere under the > expectation that there aren't a huge number of local variables. Can you > try break it up into smaller compilation units?