More Mach-O workarounds

Geoffrey Keating geoffk@apple.com
Thu Jul 31 20:37:00 GMT 2003


On Wednesday, July 30, 2003, at 07:05  PM, Richard Henderson wrote:

> On Sat, Jul 26, 2003 at 06:46:31PM -0700, Geoffrey Keating wrote:
>> +    /* Darwin doesn't support zero-size objects, so give them a	\
>> +       byte.  */						\
>> +    if ((SIZE) == 0)						\
>> +      assemble_zeros (1);					\
>
> No one really does.  This should almost certainly be generic.
>
Well, "support" is a pretty limited thing in the case of zero-size 
objects; basically, so long as they don't get address 0 and don't cause 
the build to fail, I think that'll do.  On Darwin, trying to use them 
gives assembler errors.



More information about the Gcc-patches mailing list