This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

optimization/3962: function containing empty try{} block not fully optimized



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]