• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
GCC 2.95.2 and exceptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GCC 2.95.2 and exceptions


  • Subject: GCC 2.95.2 and exceptions
  • From: Bret Kurth <email@hidden>
  • Date: Mon, 13 Sep 2004 13:08:40 -0500

I have an application project that is linking against a .a library from an external vendor. Both projects are built with GCC 2.95.2 for 10.1 and later support. This is out of my hands and cannot change. The .a lib is approximately 2.5MB and the application is also 2.5MB in size. This is mostly code.

I'm running into a problem with exceptions and GCC 2.95.2. Specifically, throws are not being caught, rather resulting in an immediate call to __terminate(). If I switch to the 3.1 or later compiler (merely for testing) the throws are caught by the first catch() statement up the stack as expected.

I have dug through large volumes of information on the internet which suggests this might be a bug in the GCC 2.95.2 compiler but I have found nothing concrete. Has anyone else run into a similar problem? If so, any work-arounds?

I have tried several suggestions in the MacOS X 10.1 Developer Tools release notes related to the compiler flags -fno-eh-cleanup-section and -fno-omit-frame-pointer without success. An additional comment was made to remove all alloca() calls from the code but I found none in either the library or the application.

Bret

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: GCC 2.95.2 and exceptions
      • From: Dave Rehring <email@hidden>
  • Prev by Date: Re: what happened to Shark
  • Next by Date: My company name
  • Previous by thread: Re: What is 'pbxcp' and how can I edit it to remove a non-existent file?
  • Next by thread: Re: GCC 2.95.2 and exceptions
  • Index(es):
    • Date
    • Thread