This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: turning throw into a jump
- To: Sylvain Pion <Sylvain dot Pion at sophia dot inria dot fr>
- Subject: Re: turning throw into a jump
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 23 Jul 2001 17:18:24 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <20010723215840.A30527@zosma.inria.fr>
On Mon, Jul 23, 2001 at 09:58:40PM +0200, Sylvain Pion wrote:
> I noticed that throw() seems slower with GCC 3.0 rather than 2.95 :(
> I wonder if it would be possible to turn a throw() which is local inside a
> try{} block (including after inlining) into a simple jump, which would make
> it much faster... Maybe something else also useful would be get rid of the
> whole exception code when the compiler can show that the code inside a try
> block cannot throw. Is this doable ?
Not only doable, but all of what you suggest is already done.
r~