From e96f4881dbc0d78ef9bc9c6d6002066b29a6af4d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 11 Mar 1992 23:10:37 +0000 Subject: [PATCH] entered into RCS --- sysdeps/am29k/ffs.c | 8 +++++++- sysdeps/m88k/ffs.c | 8 +++++++- sysdeps/rs6000/ffs.c | 8 +++++++- sysdeps/unix/bsd/hp/m68k/start.c | 4 ++-- sysdeps/vax/__longjmp.c | 6 +++++- sysdeps/vax/setjmp.c | 6 +++++- 6 files changed, 33 insertions(+), 7 deletions(-) diff --git a/sysdeps/am29k/ffs.c b/sysdeps/am29k/ffs.c index 6e0846c979..0f38f8795c 100644 --- a/sysdeps/am29k/ffs.c +++ b/sysdeps/am29k/ffs.c @@ -1,6 +1,6 @@ /* ffs -- find first set bit in a word, counted from least significant end. For Amd 290x0. - Copyright (C) 1991 Free Software Foundation, Inc. + Copyright (C) 1991, 1992 Free Software Foundation, Inc. Contributed by Torbjorn Granlund (tege@sics.se). The GNU C Library is free software; you can redistribute it and/or @@ -23,6 +23,8 @@ Cambridge, MA 02139, USA. */ #undef ffs +#ifdef __GNUC__ + int DEFUN(ffs, (x), int x) { @@ -32,3 +34,7 @@ DEFUN(ffs, (x), int x) return 32 - cnt; } + +#else +#include +#endif diff --git a/sysdeps/m88k/ffs.c b/sysdeps/m88k/ffs.c index 85f40528a9..effca9a0d2 100644 --- a/sysdeps/m88k/ffs.c +++ b/sysdeps/m88k/ffs.c @@ -1,6 +1,6 @@ /* ffs -- find first set bit in a word, counted from least significant end. For Motorola 88000. - Copyright (C) 1991 Free Software Foundation, Inc. + Copyright (C) 1991, 1992 Free Software Foundation, Inc. Contributed by Torbjorn Granlund (tege@sics.se). The GNU C Library is free software; you can redistribute it and/or @@ -23,6 +23,8 @@ Cambridge, MA 02139, USA. */ #undef ffs +#ifdef __GNUC__ + int DEFUN(ffs, (x), int x) { @@ -34,3 +36,7 @@ DEFUN(ffs, (x), int x) asm ("ff1 %0,%1" : "=r" (cnt) : "r" (x & -x)); return cnt + 1; } + +#else +#include +#endif diff --git a/sysdeps/rs6000/ffs.c b/sysdeps/rs6000/ffs.c index b8dfcdf878..44e7a434d2 100644 --- a/sysdeps/rs6000/ffs.c +++ b/sysdeps/rs6000/ffs.c @@ -1,6 +1,6 @@ /* ffs -- find first set bit in a word, counted from least significant end. For IBM rs6000. - Copyright (C) 1991 Free Software Foundation, Inc. + Copyright (C) 1991, 1992 Free Software Foundation, Inc. Contributed by Torbjorn Granlund (tege@sics.se). The GNU C Library is free software; you can redistribute it and/or @@ -23,6 +23,8 @@ Cambridge, MA 02139, USA. */ #undef ffs +#ifdef __GNUC__ + int DEFUN(ffs, (x), int x) { @@ -31,3 +33,7 @@ DEFUN(ffs, (x), int x) asm ("cntlz %0,%1" : "=r" (cnt) : "r" (x & -x)); return 32 - cnt; } + +#else +#include +#endif diff --git a/sysdeps/unix/bsd/hp/m68k/start.c b/sysdeps/unix/bsd/hp/m68k/start.c index 4b321562d4..e04ca0632d 100644 --- a/sysdeps/unix/bsd/hp/m68k/start.c +++ b/sysdeps/unix/bsd/hp/m68k/start.c @@ -1,7 +1,7 @@ /* hp300 4.3 BSD starts at 4, rather than 0, when the start address is 0. Go figure. */ -asm(".globl __start\n" - "__start: .long 0"); +asm(".globl __start"); +asm("__start: .long 0"); #define _start __start0 diff --git a/sysdeps/vax/__longjmp.c b/sysdeps/vax/__longjmp.c index e6979b7d31..fadfae7b28 100644 --- a/sysdeps/vax/__longjmp.c +++ b/sysdeps/vax/__longjmp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. Derived from @(#)_setjmp.s 5.7 (Berkeley) 6/27/88, Copyright (c) 1980 Regents of the University of California. @@ -20,6 +20,10 @@ Cambridge, MA 02139, USA. */ #include #include +#ifndef __GNUC__ + #error This file uses GNU C extensions; you must compile with GCC. +#endif + #define REI 02 /* Vax `rei' opcode. */ diff --git a/sysdeps/vax/setjmp.c b/sysdeps/vax/setjmp.c index 9687421802..0124ae3df5 100644 --- a/sysdeps/vax/setjmp.c +++ b/sysdeps/vax/setjmp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. Derived from @(#)_setjmp.s 5.7 (Berkeley) 6/27/88, Copyright (c) 1980 Regents of the University of California. @@ -20,6 +20,10 @@ Cambridge, MA 02139, USA. */ #include #include +#ifndef __GNUC__ + #error This file uses GNU C extensions; you must compile with GCC. +#endif + /* Save the current program position in ENV and return 0. */ int