From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10750 invoked by alias); 4 Jan 2002 18:40:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 10663 invoked from network); 4 Jan 2002 18:40:19 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 4 Jan 2002 18:40:19 -0000 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id A2D611ECDD; Fri, 4 Jan 2002 19:40:18 +0100 (MET) Received: from aj by arthur.inka.de with local (Exim 3.34 #1) id 16MZGL-0006TO-00; Fri, 04 Jan 2002 19:40:17 +0100 To: law@redhat.com Cc: hjl@gnu.org, gcc-patches@gcc.gnu.org, Jan Hubicka Subject: Re: none References: <32646.1010169056@porcupine.cygnus.com> From: Andreas Jaeger Date: Fri, 04 Jan 2002 10:42:00 -0000 In-Reply-To: <32646.1010169056@porcupine.cygnus.com> (law@redhat.com's message of "Fri, 04 Jan 2002 11:30:56 -0700") Message-ID: User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-01/txt/msg00274.txt.bz2 law@redhat.com writes: > Your recent patch to toplev.c is causing regressions on the x86. > Specifically the compiler is hanging in c-torture on > compile/941014-3.c -fomit-frame-pointer -funroll-all-loops -finline-functions > > Please investigate and fix: > > 2002-01-04 H.J. Lu > > * toplev.c (rest_of_compilation): Fix a typo when calling > cleanup_cfg. In that case we have a latent bug. I build the testsuite on x86 without problems (but have store motion disabled). I'm appending the patch again, it's really obvious IMO and I expect the problem to be somewhere else. Honza, do you have any idea? Andreas Index: toplev.c =================================================================== RCS file: /cvs/gcc/egcs/gcc/toplev.c,v retrieving revision 1.564 retrieving revision 1.565 diff -u -r1.564 -r1.565 --- toplev.c 2001/12/27 17:22:00 1.564 +++ toplev.c 2002/01/04 05:41:24 1.565 @@ -1,6 +1,6 @@ /* Top level of GNU C compiler Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GCC. @@ -2941,7 +2941,7 @@ open_dump_file (DFI_cfg, decl); find_basic_blocks (insns, max_reg_num (), rtl_dump_file); - cleanup_cfg (optimize ? CLEANUP_EXPENSIVE : 0 + cleanup_cfg ((optimize ? CLEANUP_EXPENSIVE : 0) | (flag_thread_jumps ? CLEANUP_THREADING : 0)); check_function_return_warnings (); -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj