entered into RCS
authorRoland McGrath <roland@gnu.org>
Wed, 11 Mar 1992 23:10:37 +0000 (23:10 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 11 Mar 1992 23:10:37 +0000 (23:10 +0000)
sysdeps/am29k/ffs.c
sysdeps/m88k/ffs.c
sysdeps/rs6000/ffs.c
sysdeps/unix/bsd/hp/m68k/start.c
sysdeps/vax/__longjmp.c
sysdeps/vax/setjmp.c

index 6e0846c..0f38f87 100644 (file)
@@ -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 <sysdeps/generic/ffs.c>
+#endif
index 85f4052..effca9a 100644 (file)
@@ -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 <sysdeps/generic/ffs.c>
+#endif
index b8dfcdf..44e7a43 100644 (file)
@@ -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 <sysdeps/generic/ffs.c>
+#endif
index 4b32156..e04ca06 100644 (file)
@@ -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
 
index e6979b7..fadfae7 100644 (file)
@@ -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 <ansidecl.h>
 #include <setjmp.h>
 
+#ifndef        __GNUC__
+  #error This file uses GNU C extensions; you must compile with GCC.
+#endif
+
 
 #define        REI     02      /* Vax `rei' opcode.  */
 
index 9687421..0124ae3 100644 (file)
@@ -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 <ansidecl.h>
 #include <setjmp.h>
 
+#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