This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
optimization/3962: function containing empty try{} block not fully optimized
- To: gcc-gnats at gcc dot gnu dot org
- Subject: optimization/3962: function containing empty try{} block not fully optimized
- From: Sylvain dot Pion at sophia dot inria dot fr
- Date: 8 Aug 2001 14:57:29 -0000
- Cc: Sylvain dot Pion at sophia dot inria dot fr
- Reply-To: Sylvain dot Pion at sophia dot inria dot fr
>Number: 3962
>Category: optimization
>Synopsis: function containing empty try{} block not fully optimized
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: pessimizes-code
>Submitter-Id: net
>Arrival-Date: Wed Aug 08 08:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Sylvain.Pion@sophia.inria.fr
>Release: 3.0
>Organization:
>Environment:
Reading specs from ./Linux_3.0/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: /u/zosma/0/prisme/spion/gcc/gcc/configure --enable-languages=c++ --prefix=/u/zosma/0/prisme/spion/gcc/Linux_CVS
Thread model: single
gcc version 3.0
>Description:
The following function gets compiled into the following
assembly on x86. GCC 2.95.3 correctly optimized it to
a simple "ret".
_Z1fv:
.LFB1:
subl $12, %esp
.LCFI0:
addl $12, %esp
.LCFI1:
ret
>How-To-Repeat:
Compile with "g++ -O2 -S -fomit-frame-pointer" :
void f()
{
try {}
catch(...) {}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: