Message-Id: <199908091750.RAA103840@out1.ibm.net> From: "Mark E." To: pavenis AT lanet DOT lv, djgpp-workers AT delorie DOT com Date: Mon, 9 Aug 1999 13:51:00 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: bss patch for DJGPP X-mailer: Pegasus Mail for Win32 (v3.11) Reply-To: djgpp-workers AT delorie DOT com 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/