From: millert Date: Thu, 10 Apr 1997 17:23:14 +0000 (+0000) Subject: Don't use gcc builtin __builtin_return_address(frameno) on X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=da436303e50e42de7341c7b9f627c51d47ec7c55;p=openbsd 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 --- 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