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]

[PATCH] Fix bootstrap failures in libffi



Unfortunately Bo Thorsen's recent patch to remove the variable avn
from libffi/src/x86/ffi.c didn't remove all of the references to
that variable.  This has broken bootstrap on i686-pc-linux-gnu.

The following patch has been commited to mainline CVS as obviously
correct, and returns the compiler back to bootstrap land.  My apologies
if I've overstepped my mark, this is the first patch I've commited
without explicit approval.

Ok for mainline retrospectively?



2002-05-27  Roger Sayle  <roger@eyesopen.com>

	* src/x86/ffi.c (ffi_prep_args): Remove reference to avn.


Index: ffi.c
===================================================================
RCS file: /cvs/gcc/gcc/libffi/src/x86/ffi.c,v
retrieving revision 1.4
diff -c -3 -p -r1.4 ffi.c
*** ffi.c	27 May 2002 13:54:44 -0000	1.4
--- ffi.c	28 May 2002 01:57:20 -0000
*************** void ffi_prep_args(char *stack, extended
*** 53,59 ****
    p_argv = ecif->avalue;

    for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types;
!        (i != 0) && (avn != 0);
         i--, p_arg++)
      {
        size_t z;
--- 53,59 ----
    p_argv = ecif->avalue;

    for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types;
!        i != 0;
         i--, p_arg++)
      {
        size_t z;

Roger
--
Roger Sayle,                         E-mail: roger@eyesopen.com
OpenEye Scientific Software,         WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833


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