This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More Mach-O workarounds



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]