]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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 6e0846c979352d200a727a9760caef831feac671..0f38f8795cb1c3ea219070cbfe44f5136d028a37 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 85f40528a94023328d5031890cced14c34864662..effca9a0d2273dd254cf8097327e3664554660f7 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 b8dfcdf8788288bb5011fb1557cb0f22668d8d73..44e7a434d2779b15e995f35ad65bbf16d9e6b72a 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 4b321562d42dc8785fb3484affe25fa31d5333b3..e04ca0632df905edea30f1926cc7f8ff3d7f3422 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 e6979b7d31fa30455bd8437648485746d154aa4f..fadfae7b282220661615416d21ad054260647c94 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 9687421802be09b2c93d1ec52d0e482f34f11818..0124ae3df582157e7bd74a1bfca28e05d14dca99 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