• 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
Disable exceptions in Objective-C++ files when building for x86_64?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disable exceptions in Objective-C++ files when building for x86_64?


  • Subject: Disable exceptions in Objective-C++ files when building for x86_64?
  • From: James Dolan <email@hidden>
  • Date: Sat, 4 Sep 2010 10:31:11 -0700

Forgive me if this is the wrong list for this question, but I have the
strangest problem.

I just noticed that '-fno-exceptions' has no effect on .m or .mm
files, but only when '-arch x86_64' is set. In other words,
__EXCEPTIONS is raised when it shouldn't be.

It should be easy for anyone to repro... just run the following
commands in Terminal.

exceptions still enabled!
  gcc -fno-exceptions -arch x86_64 -dM -E -x objective-c++ - <<<'' |
grep __EXCEPTIONS

exceptions not enabled.
  gcc -fno-exceptions -arch i386 -dM -E -x objective-c++ - <<<'' |
grep __EXCEPTIONS
  gcc -fno-exceptions -arch x86_64 -dM -E -x c++ - <<<'' | grep __EXCEPTIONS

-james
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Fixed pattern with colorWithPatternImage
  • Next by Date: Privileged file deletion using BetterAuthSample (factored application) : secure?
  • Previous by thread: Re: Highlight Text like with FIne
  • Next by thread: Privileged file deletion using BetterAuthSample (factored application) : secure?
  • Index(es):
    • Date
    • Thread