m68k: remove __STDC__ conditionals

This commit is contained in:
Andreas Schwab 2012-01-29 16:23:28 +01:00
parent 2aee894935
commit 53bce1b5f9
4 changed files with 8 additions and 16 deletions

View File

@ -1,3 +1,9 @@
2012-01-29 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/m68k/asm-syntax.h: Remove __STDC__ conditionals.
* sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
* sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2012-01-08 Andreas Schwab <schwab@linux-m68k.org> 2012-01-08 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/m68k/fpu/bits/fenv.h (FE_DFL_ENV, FE_NOMASK_ENV): Use * sysdeps/m68k/fpu/bits/fenv.h (FE_DFL_ENV, FE_NOMASK_ENV): Use

View File

@ -52,15 +52,10 @@
#define MEM_DISP(base,displacement)(displacement,R(base)) #define MEM_DISP(base,displacement)(displacement,R(base))
#define MEM_PREDEC(memory_base)-(R(memory_base)) #define MEM_PREDEC(memory_base)-(R(memory_base))
#define MEM_POSTINC(memory_base)(R(memory_base))+ #define MEM_POSTINC(memory_base)(R(memory_base))+
#ifdef __STDC__
#define MEM_INDX_(base,idx,size_suffix)(R(base),R(idx##.##size_suffix)) #define MEM_INDX_(base,idx,size_suffix)(R(base),R(idx##.##size_suffix))
#define MEM_INDX(base,idx,size_suffix)MEM_INDX_(base,idx,size_suffix) #define MEM_INDX(base,idx,size_suffix)MEM_INDX_(base,idx,size_suffix)
#define MEM_INDX1_(base,idx,size_suffix,scale)(R(base),R(idx##.##size_suffix*scale)) #define MEM_INDX1_(base,idx,size_suffix,scale)(R(base),R(idx##.##size_suffix*scale))
#define MEM_INDX1(base,idx,size_suffix,scale)MEM_INDX1_(base,idx,size_suffix,scale) #define MEM_INDX1(base,idx,size_suffix,scale)MEM_INDX1_(base,idx,size_suffix,scale)
#else
#define MEM_INDX(base,idx,size_suffix)(R(base),R(idx).size_suffix)
#define MEM_INDX1(base,idx,size_suffix,scale)(R(base),R(idx).size_suffix*scale)
#endif
#define TEXT .text #define TEXT .text
#define ALIGN .align ALIGNARG(2) #define ALIGN .align ALIGNARG(2)
#define GLOBL .globl #define GLOBL .globl

View File

@ -29,12 +29,7 @@ static char rcsid[] = "$NetBSD: $";
#include "math.h" #include "math.h"
#include "math_private.h" #include "math_private.h"
#ifdef __STDC__ long double __nextafterl(long double x, long double y)
long double __nextafterl(long double x, long double y)
#else
long double __nextafterl(x,y)
long double x,y;
#endif
{ {
int32_t ix,iy,esx,esy; int32_t ix,iy,esx,esy;
u_int32_t hx,hy,lx,ly; u_int32_t hx,hy,lx,ly;

View File

@ -29,11 +29,7 @@
of the kernel. But these symbols do not follow the SYS_* syntax of the kernel. But these symbols do not follow the SYS_* syntax
so we have to redefine the `SYS_ify' macro here. */ so we have to redefine the `SYS_ify' macro here. */
#undef SYS_ify #undef SYS_ify
#ifdef __STDC__ #define SYS_ify(syscall_name) __NR_##syscall_name
# define SYS_ify(syscall_name) __NR_##syscall_name
#else
# define SYS_ify(syscall_name) __NR_/**/syscall_name
#endif
#ifdef __ASSEMBLER__ #ifdef __ASSEMBLER__