This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] boehm-gc: os_dep.c (Fix NetBSD/sparc definition of structframe)
- From: Matt Thomas <matt at 3am-software dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Apr 2005 23:37:58 -0700
- Subject: [PATCH] boehm-gc: os_dep.c (Fix NetBSD/sparc definition of structframe)
2005-04-13 Matt Thomas <matt@3am-software.com>
* os_dep.c (struct frame): Fix NetBSD/sparc definition thereof.
Index: os_dep.c
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/os_dep.c,v
retrieving revision 1.30
diff -c -3 -p -r1.30 os_dep.c
*** os_dep.c 13 Aug 2004 23:05:30 -0000 1.30
--- os_dep.c 13 Apr 2005 04:27:05 -0000
*************** kern_return_t catch_exception_raise_stat
*** 3919,3935 ****
#endif
#if defined(SPARC)
! # if defined(LINUX)
! # include <features.h>
struct frame {
long fr_local[8];
long fr_arg[6];
struct frame *fr_savfp;
long fr_savpc;
! # ifndef __arch64__
char *fr_stret;
! # endif
long fr_argd[6];
long fr_argx[0];
};
--- 3919,3937 ----
#endif
#if defined(SPARC)
! # if defined(LINUX) || defined(NETBSD)
! # if defined(LINUX)
! # include <features.h>
! # endif
struct frame {
long fr_local[8];
long fr_arg[6];
struct frame *fr_savfp;
long fr_savpc;
! # if defined(__arch64__) || defined(_LP64)
char *fr_stret;
! # endif
long fr_argd[6];
long fr_argx[0];
};
*************** kern_return_t catch_exception_raise_stat
*** 3940,3946 ****
# if defined (DRSNX)
# include <sys/sparc/frame.h>
# else
! # if defined(OPENBSD) || defined(NETBSD)
# include <frame.h>
# else
# include <sys/frame.h>
--- 3942,3948 ----
# if defined (DRSNX)
# include <sys/sparc/frame.h>
# else
! # if defined(OPENBSD)
# include <frame.h>
# else
# include <sys/frame.h>