swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Re: Swarm 2.2 on Intel (and PPC) Mac OSX Tiger


From: Scott Christley
Subject: Re: [Swarm-Support] Re: Swarm 2.2 on Intel (and PPC) Mac OSX Tiger
Date: Sun, 23 Jul 2006 12:26:51 -0400

GCC isn't deprecating nested functions as far as I know. Apple just disables their use within Xcode by passing a flag to the compiler, this started with Xcode 2.2. Supposedly you can re-enable support with an additional compiler flag; however they discourage it. They mention some security feature but don't say exactly what.

http://developer.apple.com/technotes/tn2006/tn2161.html

cheers
Scott

On Jul 23, 2006, at 12:15 AM, Marcus G. Daniels wrote:

Bill Northcott wrote:
As posted, it will not build with Apple's gcc-4, the compiler you should be using, because it contains nested function definitions. These are strongly deprecated and will soon be disabled for security reasons.
What compilers usually do to get an executable stack is to arrange to get it on a case by case basis using mprotect(2). E.g. see these messages:

http://gcc.gnu.org/ml/gcc-help/2005-12/msg00174.html
http://gcc.gnu.org/ml/gcc-help/2005-12/msg00177.html

I was under the impression that this problem was just a regression in GCC. Is there a later archived discussion and/or Bugzilla documentation of this deprecation?
_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support



reply via email to

[Prev in Thread] Current Thread [Next in Thread]