freebsd-dev/contrib
David E. O'Brien 66d7199d63 Import the setjump/longjump exception handling fixes from GCC 2.95.3.test3
that were removed from GCC 2.95.3.test4 and the subsequent release due
to problems on HP-UX.  However, they work just fine on all the BSD's.

W/o these patches the following program segmentation faults if compiled
with -O2 (but not -Os or -O or -O0):

#include <stdio.h>

class A {
public:
  A() { printf("c'tor A\n"); }
  ~A(){ printf("d'tor A\n"); }
};

class foo : public A {
public:
  foo()  { printf("C'tor foo\n"); throw 8; }
  ~foo() { printf("D'tor foo\n"); }
};

int main(){
  try { foo fii; }
  catch (int){ printf("catch ...\n"); }
  return 0;
}
2001-03-24 01:58:31 +00:00
..
gcc Import the setjump/longjump exception handling fixes from GCC 2.95.3.test3 2001-03-24 01:58:31 +00:00
libf2c Import of a GCC 2.96 snapshot taken from the trunk of the FSF GCC anoncvs 2000-12-14 21:42:21 +00:00
libg++ Drat, I got carried away cleaning up and forgot this. This is where 1996-10-03 22:58:33 +00:00
libio Virgin import of GCC 2.95.3's libio -- the C++ iostream facility. 2001-03-19 20:49:58 +00:00
libobjc Virgin import of GCC 2.95.3's libobjc 2001-03-19 20:56:11 +00:00
libstdc++ Virgin import of GCC 2.95.3's libstdc++ 2001-03-19 20:51:52 +00:00