BSD VA List

korbb@egcs.cygnus.com korbb@egcs.cygnus.com
Mon Jun 28 06:59:00 GMT 1999


Jeff,

The BSD folks would like to see these changes go into 2_95.
I am applying them to the main branch this morning.

Regards,
    Bruce

> The fixincludes/__gnuc_va_list issue is also causing a problem with EGCS
> on FreeBSD/Alpha (the Alpha support will be submitted to EGCS for
> inclusion post 2.95, BUT I would like to reduce the amount of diffs I
> need to apply to the EGCS dist for the Alpha support in our ports system
> ( http://www.freebsd.org/ports/lang/ )).
> 
> Loren James Rittle's patch of Wed, 23 Jun 1999 06:54:55 -0500 (CDT) is
> really needed especially on the Alpha where the va issues are more
> complicated than the x86 architecture.  Would it be possible to get such
> a patch into 2.95?
> 
> We need to run `fixincl' rather than `fixinc.wrap' to replace, for
> example, _BSD_VA_LIST with __gnuc_va_list.  Also the i386 would benefit
> by removing `i[34567]86-*-freebsd*' from gcc/fixinc/mkfixinc.sh.


1999-06-28  "David O'Brien"  <obrien@NUXI.com>

	* fixinc/inclhack.def(stdio_va_list): This patch Removes a
	semicolon from the BSD VA_LIST replacement expression.

	* fixinc/inclhack.sh: regen
	* fixinc/fixincl.x: regen

	* fixinc/mkfixinc.sh: Have `i[34567]86-*-freebsd*' machines
	now use the fixincl program.

--- gcc/fixinc/inclhack.def.orig        Fri Jun 18 16:00:06 1999
+++ gcc/fixinc/inclhack.def     Mon Jun 28 15:31:45 1999
@@ -1367,7 +1367,7 @@
 
   sed -e 's@ va_list @ __gnuc_va_list @' \\
       -e 's@ va_list)@ __gnuc_va_list)@' \\
-      -e 's@ _BSD_VA_LIST_));@ __gnuc_va_list));@' \\
+      -e 's@ _BSD_VA_LIST_))@ __gnuc_va_list))@' \\
       -e 's@ _VA_LIST_));@ __gnuc_va_list));@' \\
       -e 's@ va_list@ __va_list__@' \\
       -e 's@\\*va_list@*__va_list__@' \\

Index: mkfixinc.sh
===================================================================
RCS file: /cvs/egcs/egcs/gcc/fixinc/mkfixinc.sh,v
retrieving revision 1.14
diff -u -r1.14 mkfixinc.sh
--- mkfixinc.sh 1999/06/18 07:03:58     1.14
+++ mkfixinc.sh 1999/06/28 13:56:37
@@ -40,8 +40,8 @@
 
        *-*-netbsd* | \
        alpha*-*-linux-gnulibc1* | \
-       i[34567]86-*-freebsd* | \
-       i[34567]86-*-netbsd* | i[34567]86-*-openbsd* | \
+       i[34567]86-*-netbsd* | \
+       i[34567]86-*-openbsd* | \
        i[34567]86-*-solaris2* | \
        sparcv9-*-solaris2* | \
        powerpcle-*-solaris2*  | \


More information about the Gcc-patches mailing list