lua-users home
lua-l archive

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


Mike Pall wrote:
[...]
> The bug might be just in the specific (heavily-patched) GCC 4.0
> Apple is using. Or only in combination with the Mach linker.

I did run into an OSX bug in the past where it wasn't zero-initialising global
variables:

#include <stdio.h>

int foo;

int main(int argc, char* argv[])
{
    printf("%d\n", foo);
}

This must return '0' (the standard requires it), but the Apple wasn't.
Explicitly initialising 'foo' with 'int foo = 0;' worked, but that shouldn't
be necessary.

This was back in the days of OSX on PowerPC; and I don't know whether the
bug's been fixed or not by now.

-- 
+- David Given --McQ-+ "Gaping from its single obling socket was
|  dg@cowlark.com    | scintillating, many fauceted scarlet emerald..."
| (dg@tao-group.com) | --- Jim Theis, _The Eye of Argon_ (spelling
+- www.cowlark.com --+ original)


Attachment: signature.asc
Description: OpenPGP digital signature