Mail Archives: djgpp-workers/1999/08/09/13:55:29
Hello again,
My last patch had the right idea, but it didn't go far enough. According cp/decl.c
the gcc sources, another patch is needed for C++ to output static arrays into .bss
just like C:
*** gcc/config/i386/djgpp.h.orig Wed Aug 4 04:58:38 1999
--- gcc/config/i386/djgpp.h Mon Aug 9 13:39:04 1999
*************** dtor_section () \
*** 162,167 ****
--- 162,172 ----
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
if ((LOG) != 0) fprintf ((FILE), "\t.p2align %d\n", LOG)
+ /* This is how to output a global symbol in the BSS section. */
+ #undef ASM_OUTPUT_ALIGNED_BSS
+ #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
+ asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN))
+
/* djgpp has atexit (). */
#undef HAVE_ATEXIT
#define HAVE_ATEXIT
gcc 2.95.1 doesn't seem to be too far away, so perhaps you could include then.
Mark
---
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/
- Raw text -