defs.h: simplify PERSONALITY0_WORDSIZE definition
Move definition of PERSONALITY0_WORDSIZE macro outside arch specific ifdefs. * defs.h (PERSONALITY0_WORDSIZE): Define to SIZEOF_LONG unconditionally.
This commit is contained in:
parent
aebfe832b8
commit
8d92151c66
10
defs.h
10
defs.h
@ -153,38 +153,32 @@ extern char *stpcpy(char *dst, const char *src);
|
||||
|
||||
#ifdef SPARC64
|
||||
# define SUPPORTED_PERSONALITIES 2
|
||||
# define PERSONALITY0_WORDSIZE 8
|
||||
# define PERSONALITY1_WORDSIZE 4
|
||||
#endif
|
||||
|
||||
#ifdef X86_64
|
||||
# define SUPPORTED_PERSONALITIES 3
|
||||
# define PERSONALITY0_WORDSIZE 8
|
||||
# define PERSONALITY1_WORDSIZE 4
|
||||
# define PERSONALITY2_WORDSIZE 4
|
||||
#endif
|
||||
|
||||
#ifdef X32
|
||||
# define SUPPORTED_PERSONALITIES 2
|
||||
# define PERSONALITY0_WORDSIZE 4
|
||||
# define PERSONALITY1_WORDSIZE 4
|
||||
#endif
|
||||
|
||||
#ifdef AARCH64
|
||||
# define SUPPORTED_PERSONALITIES 2
|
||||
# define PERSONALITY0_WORDSIZE 8
|
||||
# define PERSONALITY1_WORDSIZE 4
|
||||
#endif
|
||||
|
||||
#ifdef POWERPC64
|
||||
# define SUPPORTED_PERSONALITIES 2
|
||||
# define PERSONALITY0_WORDSIZE 8
|
||||
# define PERSONALITY1_WORDSIZE 4
|
||||
#endif
|
||||
|
||||
#ifdef TILE
|
||||
# define SUPPORTED_PERSONALITIES 2
|
||||
# define PERSONALITY0_WORDSIZE 8
|
||||
# define PERSONALITY1_WORDSIZE 4
|
||||
# ifdef __tilepro__
|
||||
# define DEFAULT_PERSONALITY 1
|
||||
@ -197,10 +191,8 @@ extern char *stpcpy(char *dst, const char *src);
|
||||
#ifndef DEFAULT_PERSONALITY
|
||||
# define DEFAULT_PERSONALITY 0
|
||||
#endif
|
||||
#ifndef PERSONALITY0_WORDSIZE
|
||||
# define PERSONALITY0_WORDSIZE SIZEOF_LONG
|
||||
#endif
|
||||
|
||||
#define PERSONALITY0_WORDSIZE SIZEOF_LONG
|
||||
#define PERSONALITY0_INCLUDE_PRINTERS_DECLS "native_printer_decls.h"
|
||||
#define PERSONALITY0_INCLUDE_PRINTERS_DEFS "native_printer_defs.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user