]> granicus.if.org Git - strace/commitdiff
defs.h: simplify PERSONALITY1_WORDSIZE definition
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 8 Aug 2016 21:52:05 +0000 (21:52 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 8 Aug 2016 23:28:29 +0000 (23:28 +0000)
Move definition of PERSONALITY1_WORDSIZE macro outside arch specific
ifdefs.

* defs.h [SPARC64 || X86_64 || X32 || AARCH64 || POWERPC64 || TILE]
(PERSONALITY1_WORDSIZE): Remove.
[SUPPORTED_PERSONALITIES > 1] (PERSONALITY1_WORDSIZE): Define to 4
unconditionally.

defs.h

diff --git a/defs.h b/defs.h
index 50a66d373700b02a062810f844ebed50ab665496..3d504ae3df325fc2e34a2511be845b79ee0fe7cc 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -153,33 +153,27 @@ extern char *stpcpy(char *dst, const char *src);
 
 #ifdef SPARC64
 # define SUPPORTED_PERSONALITIES 2
-# define PERSONALITY1_WORDSIZE 4
 #endif
 
 #ifdef X86_64
 # define SUPPORTED_PERSONALITIES 3
-# define PERSONALITY1_WORDSIZE 4
 # define PERSONALITY2_WORDSIZE 4
 #endif
 
 #ifdef X32
 # define SUPPORTED_PERSONALITIES 2
-# define PERSONALITY1_WORDSIZE 4
 #endif
 
 #ifdef AARCH64
 # define SUPPORTED_PERSONALITIES 2
-# define PERSONALITY1_WORDSIZE 4
 #endif
 
 #ifdef POWERPC64
 # define SUPPORTED_PERSONALITIES 2
-# define PERSONALITY1_WORDSIZE 4
 #endif
 
 #ifdef TILE
 # define SUPPORTED_PERSONALITIES 2
-# define PERSONALITY1_WORDSIZE 4
 # ifdef __tilepro__
 #  define DEFAULT_PERSONALITY 1
 # endif
@@ -196,6 +190,10 @@ extern char *stpcpy(char *dst, const char *src);
 #define PERSONALITY0_INCLUDE_PRINTERS_DECLS "native_printer_decls.h"
 #define PERSONALITY0_INCLUDE_PRINTERS_DEFS "native_printer_defs.h"
 
+#if SUPPORTED_PERSONALITIES > 1
+# define PERSONALITY1_WORDSIZE 4
+#endif
+
 #if SUPPORTED_PERSONALITIES > 1 && defined HAVE_M32_MPERS
 # define PERSONALITY1_INCLUDE_PRINTERS_DECLS "m32_printer_decls.h"
 # define PERSONALITY1_INCLUDE_PRINTERS_DEFS "m32_printer_defs.h"