This is the mail archive of the gcc-bugs@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]

2.95.2: exception handling - some missing!


Hi,
  I have a problem with gcc 2.95.2 and C++ exceptions. Exceptions
are not being caught; looking at the generated assembler it appears that
there are a very small number (<1%) of the exception blocks
(.LEHB/.LEHE) which aren't ending up in the exception table.  This is a
BIG source file with LOTS of catch blocks (around 5K blocks) (it is
generated by the SWIG tool) and actually while this has been a problem for
a while we haven't hit it because only now has it landed on a block which
actually caused an exception.

  That was compiling with either -O1 or -O2; no -O flag gives all OK.

Is this a known problem? If so is there a known fix or something to avoid
doing (other than exceptions!).

Thanks a lot,

Dave

-- 
/------------------------------------------------------------------\
| Dr. David Alan Gilbert | Work:dg@px.uk.com +44-161-286-2000 Ex258|
| -------- G7FHJ --------|---------------------------------------- |
| Home: dave@treblig.org            http://www.treblig.org         |
\------------------------------------------------------------------/


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