Searched hist:74722 (Results 1 - 2 of 2) sorted by relevance
/freebsd-10-stable/contrib/gcc/ | ||
H A D | except.c | diff 74722 Fri Mar 23 23:58:31 MST 2001 obrien 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; } |
H A D | expr.h | diff 74722 Fri Mar 23 23:58:31 MST 2001 obrien 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; } |
Completed in 207 milliseconds