Drop _MACHINE_ARCH and _MACHINE defines (not to be confused with
MACHINE_ARCH and MACHINE). Their purpose was to be able to test in cpp(1), but cpp(1) only understands integer type expressions. Using such unsupported expressions introduced a number of subtle bugs, which were discovered by compiling with -Wundef.
This commit is contained in:
parent
c1606167c2
commit
f9739084f5
@ -64,13 +64,6 @@
|
||||
#define _ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
|
||||
#endif
|
||||
|
||||
#ifndef _MACHINE
|
||||
#define _MACHINE alpha
|
||||
#endif
|
||||
#ifndef _MACHINE_ARCH
|
||||
#define _MACHINE_ARCH alpha
|
||||
#endif
|
||||
|
||||
#ifndef _NO_NAMESPACE_POLLUTION
|
||||
|
||||
#ifndef _MACHINE_PARAM_H_
|
||||
|
@ -64,13 +64,6 @@
|
||||
#define _ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
|
||||
#endif
|
||||
|
||||
#ifndef _MACHINE
|
||||
#define _MACHINE amd64
|
||||
#endif
|
||||
#ifndef _MACHINE_ARCH
|
||||
#define _MACHINE_ARCH amd64
|
||||
#endif
|
||||
|
||||
#ifndef _NO_NAMESPACE_POLLUTION
|
||||
|
||||
#ifndef _MACHINE_PARAM_H_
|
||||
|
@ -56,12 +56,6 @@
|
||||
|
||||
#define STACKALIGNBYTES (8 - 1)
|
||||
#define STACKALIGN(p) ((u_int)(p) & ~STACKALIGNBYTES)
|
||||
#ifndef _MACHINE
|
||||
#define _MACHINE "arm"
|
||||
#endif
|
||||
#ifndef _MACHINE_ARCH
|
||||
#define _MACHINE_ARCH "arm"
|
||||
#endif
|
||||
|
||||
#ifndef _NO_NAMESPACE_POLLUTION
|
||||
|
||||
|
@ -49,13 +49,6 @@
|
||||
#define _ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
|
||||
#endif
|
||||
|
||||
#ifndef _MACHINE
|
||||
#define _MACHINE i386
|
||||
#endif
|
||||
#ifndef _MACHINE_ARCH
|
||||
#define _MACHINE_ARCH i386
|
||||
#endif
|
||||
|
||||
#ifndef _NO_NAMESPACE_POLLUTION
|
||||
|
||||
#ifndef _MACHINE_PARAM_H_
|
||||
|
@ -63,13 +63,6 @@
|
||||
#define _ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
|
||||
#endif
|
||||
|
||||
#ifndef _MACHINE
|
||||
#define _MACHINE ia64
|
||||
#endif
|
||||
#ifndef _MACHINE_ARCH
|
||||
#define _MACHINE_ARCH ia64
|
||||
#endif
|
||||
|
||||
#ifndef _NO_NAMESPACE_POLLUTION
|
||||
|
||||
#ifndef _MACHINE_PARAM_H_
|
||||
|
@ -54,13 +54,6 @@
|
||||
#define _ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
|
||||
#endif
|
||||
|
||||
#ifndef _MACHINE
|
||||
#define _MACHINE powerpc
|
||||
#endif
|
||||
#ifndef _MACHINE_ARCH
|
||||
#define _MACHINE_ARCH powerpc
|
||||
#endif
|
||||
|
||||
#ifndef _NO_NAMESPACE_POLLUTION
|
||||
|
||||
#ifndef _MACHINE_PARAM_H_
|
||||
|
@ -46,13 +46,6 @@
|
||||
#define _ALIGN(p) (((u_long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
|
||||
#endif
|
||||
|
||||
#ifndef _MACHINE
|
||||
#define _MACHINE sparc64
|
||||
#endif
|
||||
#ifndef _MACHINE_ARCH
|
||||
#define _MACHINE_ARCH sparc64
|
||||
#endif
|
||||
|
||||
#ifndef _NO_NAMESPACE_POLLUTION
|
||||
|
||||
#ifndef _MACHINE_PARAM_H_
|
||||
|
Loading…
Reference in New Issue
Block a user