• 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
Optimization Level
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optimization Level


  • Subject: Optimization Level
  • From: "Raglan T. Tiger" <email@hidden>
  • Date: Mon, 17 Oct 2016 12:35:25 -0600

Moving , finally, to Xcode 7.3.1, I get a weird bug.

If I build a release configuration with the recommended optimization level (fastest, smallest) then this code

void xxxxx::Clear(apointList &list)

{

    if ( ! &list )

        return;

}

never returns when apointlis &list = 0x00000000 as shown in the debugger.

But if I set the optimization level (none) then the code works properly.

Of course Apple says never ship release code with optimization level none, always use faster,smallest

What am I missing ?

-rags
_______________________________________________

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


  • Follow-Ups:
    • Re: Optimization Level
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Getting/Setting FinderInfo attributes using native Cocoa API?
  • Next by Date: Re: Optimization Level
  • Previous by thread: Re: observeValueForKeyPath:... called too often in macOS 12
  • Next by thread: Re: Optimization Level
  • Index(es):
    • Date
    • Thread