From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1806 invoked by alias); 26 Mar 2003 22:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1788 invoked by uid 71); 26 Mar 2003 22:26:00 -0000 Date: Wed, 26 Mar 2003 22:32:00 -0000 Message-ID: <20030326222600.1787.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Geoffrey Keating Subject: Re: c++/10039: [macosx] gcc hangs at a c++-Constructor with switch "-Os" Reply-To: Geoffrey Keating X-SW-Source: 2003-03/txt/msg01850.txt.bz2 List-Id: The following reply was made to PR c++/10039; it has been noted by GNATS. From: Geoffrey Keating To: dixl@medimach.de, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org Cc: Subject: Re: c++/10039: [macosx] gcc hangs at a c++-Constructor with switch "-Os" Date: Wed, 26 Mar 2003 14:25:30 -0800 Dix says this was filed as Apple Radar 3042899, quite some time ago. In summary: The compiler is not really hanging, just taking a very long time (hours). The problem is specific to -Os. A workaround for released compilers is to add -fno-gcse, or use -O2 instead of -Os. -fno-schedule-insns will also help. It looks like later compiler releases (3.3, 3.4, the next Apple compiler release) will have the performance bottlenecks improved, down to sane numbers (like 10 minutes, with no workarounds, or 1 minute with -fno-schedule-insns in 3.3, and better in 3.4). -- Geoff Keating