site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Nov 3, 2007, at 7:21 AM, mothra wrote: Versions of gcc before 4.0 had much loser standards compliance. -Shawn _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Thanks for the input - it appears that that solution does work. It is a bit distressing to me that Apple's gcc 4.0.1 is not consistent with either RedHat's gcc 4.1.* or their gcc 3.*, or Apple's gcc 3.* in this regard. Is Apple striking out on its own here? Or is this requirement for two lines of code to initialize such variables an existing standard that only Apple is currently enforcing? Without looking at the compile command lines for your RH compile it is hard to say why it is working. I am fairly curtain that what you had isn't allowed by the standard and so Apple gcc 4.0.1 is being compliant. RH gcc 4.1 should also be compliant but you may be specifying a mode that allows some "gcc" specific extension to the standard. This email sent to site_archiver@lists.apple.com
participants (1)
-
Shawn Erickson