diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-10 17:23:15 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-10 17:23:15 +0000 |
commit | 9f202a44445e15a2bba9c01df67b16fa9fb10083 (patch) | |
tree | 4951848f0dd7a2052f5e9ae2478f38d7f20642a1 | |
parent | 52038d06a0b5213ba7dd834897ec18548e57f71f (diff) |
Don't use gcc builtin __builtin_return_address(frameno) on
alpha, it crashes the kernel. This is a work around until
gcc is fixed. NetBSD PR#3471 fix from Ross Harvey <ross@teraflop.com>
-rw-r--r-- | sys/miscfs/nullfs/null.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/miscfs/nullfs/null.h b/sys/miscfs/nullfs/null.h index 2ba6eef6d19..75e8281a06b 100644 --- a/sys/miscfs/nullfs/null.h +++ b/sys/miscfs/nullfs/null.h @@ -1,4 +1,4 @@ -/* $OpenBSD: null.h,v 1.3 1996/05/22 12:04:35 deraadt Exp $ */ +/* $OpenBSD: null.h,v 1.4 1997/04/10 17:23:14 millert Exp $ */ /* $NetBSD: null.h,v 1.7 1996/05/17 20:53:11 gwr Exp $ */ /* @@ -65,7 +65,8 @@ struct null_node { #endif }; -#if !defined(__GNUC__) || __GNUC__ < 2 || \ +/* XXX - __builtin_return_address() broken on alpha due to gcc bug */ +#if defined(__alpha__) || !defined(__GNUC__) || __GNUC__ < 2 || \ (__GNUC__ == 2 && __GNUC_MINOR__ < 5) #define RETURN_PC(frameno) (void *)0 #else |