[ASSEMBLER]: Protect macros with this.
This commit is contained in:
parent
f6aa1372e1
commit
a1350964e9
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user