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]
Other format: [Raw text]

Re: c++/5282: .so exception handler works in 3.0.2 not 3.0.3


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5282

Added by swansma@yahoo.com in PR 5283:

=========================================================================


 Hello,
 Not sure how to add info to a bug report. Hopefully this email is the
correct
 way to do it.

 I just wanted to note that:
 1. 5282 contains a testcase
 2. 5282 is completely different than 5238
 3. The 5282 testcase works on 3.0.2. It does NOT work on 3.0.3 or 3.1
beta
 with any version of binutils.
 4. The include file tuxmodule.h is not needed to make the testcase
compile.
 Here's the replacement:

 extern "C" {
     void TUXAPI_init();
     int TUXAPI_handle_events (void* req);
 }

 #include "syslog.h"
 #include "TestException.h"

 int TUXAPI_handle_events (void* req) {
     return 1;
 }

 void TUXAPI_init() {

     openlog("BugLib", LOG_PID | LOG_CONS | LOG_NDELAY, LOG_DAEMON);

     syslog(LOG_INFO, "TUXAPI_init()");

     try {
         throw TestException("test123");
         return;
     } catch(TestException e) {
         // This never happens
         syslog(LOG_INFO, "Success");
     }

 }



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