From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31488 invoked by alias); 6 May 2002 23:36: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 31464 invoked by uid 71); 6 May 2002 23:36:01 -0000 Resent-Date: 6 May 2002 23:36:01 -0000 Resent-Message-ID: <20020506233601.31463.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, Sylvain.Pion@sophia.inria.fr Resent-Reply-To: gcc-gnats@gcc.gnu.org, Sylvain.Pion@sophia.inria.fr Received:(qmail 31445 invoked by uid 61); 6 May 2002 23:35:50 -0000 Message-Id:<20020506233550.31444.qmail@sources.redhat.com> Date: Mon, 06 May 2002 16:36:00 -0000 From: Sylvain.Pion@sophia.inria.fr Reply-To: Sylvain.Pion@sophia.inria.fr To: gcc-gnats@gcc.gnu.org Cc: Sylvain.Pion@sophia.inria.fr X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify:Sylvain.Pion@sophia.inria.fr Subject: optimization/6588: throw() takes 20,000 cycles : is it expected ? X-SW-Source: 2002-05/txt/msg00173.txt.bz2 List-Id: >Number: 6588 >Category: optimization >Synopsis: throw() takes 20,000 cycles : is it expected ? >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: pessimizes-code >Submitter-Id: net >Arrival-Date: Mon May 06 16:36:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sylvain Pion >Release: 3.1 and 3.2 >Organization: >Environment: Reading specs from /u/zosma/0/prisme/spion/gcc/Linux_trunc/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs Configured with: /u/zosma/0/prisme/spion/gcc/gcc_trunc/configure --disable-shared --disable-nls --enable-languages=c++ --prefix=/u/zosma/0/prisme/spion/gcc/Linux_trunc --with-gnu-as --with-gnu-ld --with-as=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/as --with-ld=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/ld Thread model: single gcc version 3.2 20020505 (experimental) >Description: The sequence throw/catch appears to take about 20,000 cycles on a Pentium III. Is this expected ? Is there a way to speed this up ? Even if this sequence is not supposed to happen often, the fact that it's very slow can have a visible impact on global performance. >How-To-Repeat: // Compile with optimization the following code, // It takes more than 20 seconds to execute on my // Pentium III at 933 MHz. int main() { for (int i=0; i<1000000; ++i) { try { throw(0); } catch (...) { } } } >Fix: >Release-Note: >Audit-Trail: >Unformatted: