]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[ASSEMBLER]: Protect macros with this.
authorRoland McGrath <roland@gnu.org>
Fri, 27 Jan 1995 20:48:38 +0000 (20:48 +0000)
committerRoland McGrath <roland@gnu.org>
Fri, 27 Jan 1995 20:48:38 +0000 (20:48 +0000)
sysdeps/unix/bsd/Attic/osf1/alpha/sysdep.h
sysdeps/unix/bsd/sequent/i386/sysdep.h
sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h
sysdeps/unix/bsd/sun/m68k/sysdep.h
sysdeps/unix/bsd/vax/sysdep.h
sysdeps/unix/mips/sysdep.h
sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h

index 279461b089e5640045b2da7375498980b865fdb9..3669a69b9b3ac7024e7ae1037172789cb63dec7b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995 Free Software Foundation, Inc.
    Contributed by Brendan Kehoe (brendan@zen.org).
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -17,6 +17,9 @@ not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 Cambridge, MA 02139, USA.  */
 
 #include <sysdeps/unix/sysdep.h>
+
+#ifdef ASSEMBLER
+
 #include <machine/pal.h>               /* get PAL_callsys */
 #include <regdef.h>
 
@@ -66,3 +69,5 @@ Cambridge, MA 02139, USA.  */
 #define r0             v0
 #define r1             a4
 #define MOVE(x,y)      mov x, y
+
+#endif /* ASSEMBLER */
index 05fe24cef763978d404e0054585352df0accdd0e..f1365e764ee3eeb13bc62963edc931983854d2cf 100644 (file)
@@ -1,5 +1,5 @@
 /* System call interface code for Sequent Symmetry running Dynix version 3.
-Copyright (C) 1993 Free Software Foundation, Inc.
+Copyright (C) 1993, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -19,6 +19,8 @@ Cambridge, MA 02139, USA.  */
 
 #include <sysdeps/unix/i386/sysdep.h>
 
+#ifdef ASSEMBLER
+
 /* Get the symbols for system call interrupts.  */
 #include <machine/trap.h>
   
@@ -76,3 +78,5 @@ Cambridge, MA 02139, USA.  */
 #define        r1              %ecx    /* Secondary return-value register.  */
 #undef scratch
 #define scratch        %edx    /* Call-clobbered register for random use.  */
+
+#endif /* ASSEMBLER */
index 43ef480ee9d5632e2b1ac7d4bbcdb7f81baa66cb..a62c17edbc8e15b937a751dba2c5423a5e02fd2a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -16,10 +16,10 @@ License along with the GNU C Library; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 Cambridge, MA 02139, USA.  */
 
-/* This code wants to be run through m4.  */
-
 #include <sysdeps/unix/sysdep.h>
 
+#ifdef ASSEMBLER
+
 #define        POUND   #
 
 #ifdef __STDC__
@@ -52,3 +52,5 @@ Cambridge, MA 02139, USA.  */
 #define        r0      d0
 #define        r1      d1
 #define        MOVE(x,y)       movel x , y
+
+#endif
index 8655f37147d509f964818f13e8219e22236acf1e..80f6aba7b07843b4a71dae8a79597062ae77fd23 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1994, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -16,10 +16,10 @@ License along with the GNU C Library; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 Cambridge, MA 02139, USA.  */
 
-/* This code wants to be run through m4; see sysdeps/m68k/Makefile.  */
-
 #include <sysdeps/unix/sysdep.h>
 
+#ifdef ASSEMBLER
+
 #define        POUND   #
 
 #ifdef __STDC__
@@ -58,3 +58,5 @@ Cambridge, MA 02139, USA.  */
 #define        r0      d0
 #define        r1      d1
 #define        MOVE(x,y)       movel x , y
+
+#endif /* ASSEMBLER */
index 60e01acf7b8abf6f786eba97e76719370d2d2e9a..aeddad99ae18337f1f86b785ba93b7b17a6daa4f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -18,6 +18,8 @@ Cambridge, MA 02139, USA.  */
 
 #include <sysdeps/unix/sysdep.h>
 
+#ifdef ASSEMBLER
+
 #ifdef __STDC__
 #define        ENTRY(name)                                                           \
   .globl _##name;                                                            \
@@ -49,3 +51,5 @@ Cambridge, MA 02139, USA.  */
 #endif
 
 #define MOVE(x,y)      movl x , y
+
+#endif /* ASSEMBLER */
index bbf742b7331110e431b96aa0b5240d21b5bc7483..ee047fb28ea884c26eb8d8aaf4e673ea8e929891 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
    Contributed by Brendan Kehoe (brendan@zen.org).
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -17,6 +17,9 @@ not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 Cambridge, MA 02139, USA.  */
 
 #include <sysdeps/unix/sysdep.h>
+
+#ifdef ASSEMBLER
+
 #include <regdef.h>
 
 #ifdef __STDC__
@@ -65,3 +68,5 @@ syse1:
 #define r1     v1
 /* The mips move insn is d,s.  */
 #define MOVE(x,y)      move y , x
+
+#endif
index 90e2b3842738ad52fa621329b83b9ceddae16e7a..edb98309e6fce733340be92dbc4bb50b8ed76bc7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
    Contributed by Brendan Kehoe (brendan@zen.org).
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -21,6 +21,8 @@ Cambridge, MA 02139, USA.  */
 
 #include <sysdeps/unix/sysdep.h>
 
+#ifdef ASSEMBLER
+
 /* As of gcc-2.6.0, it complains about pound signs in front of things
    that aren't arguments to the macro.  So we use this to pull it off
    instead.  */
@@ -46,3 +48,4 @@ Cambridge, MA 02139, USA.  */
 #define        r1              %o1
 #define        MOVE(x,y)       mov x, y
 
+#endif /* ASSEMBLER */