This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: fix stdio_va_list hack under DJGPP
- To: Bruce Korb <bkorb at cruzio dot com>
- Subject: PATCH: fix stdio_va_list hack under DJGPP
- From: Laurynas Biveinis <lauras at softhome dot net>
- Date: Thu, 07 Dec 2000 21:54:53 +0100
- CC: GCC Patches <gcc-patches at gcc dot gnu dot org>
That hack does not recognize internal va_list definition
for DJGPP, so I've made a patch to skip this fix for DJGPP.
Tested with i686-pc-msdosdjgpp -> i686-pc-linux-gnu cross-compiler.
Laurynas
2000-12-07 Laurynas Biveinis <lauras@softhome.net>
* fixinc/inclhack.def: skip stdio_va_list fix if __DJ_va_list
found in a header.
* fixinc/fixincl.x: regenerated.
Index: fixincl.x
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fixinc/fixincl.x,v
retrieving revision 1.95
diff -u -r1.95 fixincl.x
--- fixincl.x 2000/12/05 18:08:09 1.95
+++ fixincl.x 2000/12/07 19:47:34
@@ -3679,7 +3679,7 @@
* content bypass pattern - skip fix if pattern found
*/
tSCC zStdio_Va_ListBypass0[] =
- "__gnuc_va_list|_BSD_VA_LIST_";
+ "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
#define STDIO_VA_LIST_TEST_CT 1
static tTestDesc aStdio_Va_ListTests[] = {
Index: inclhack.def
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fixinc/inclhack.def,v
retrieving revision 1.98
diff -u -r1.98 inclhack.def
--- inclhack.def 2000/12/05 18:08:09 1.98
+++ inclhack.def 2000/12/07 19:47:44
@@ -2011,7 +2011,7 @@
fix = {
hackname = stdio_va_list;
files = stdio.h;
- bypass = '__gnuc_va_list|_BSD_VA_LIST_';
+ bypass = '__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list';
/*
* Use __gnuc_va_list in arg types in place of va_list.