sh.h (SLOW_BYTE_ACCESS): Define to 1.
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Fri, 5 Mar 1999 11:28:33 +0000 (11:28 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Fri, 5 Mar 1999 11:28:33 +0000 (11:28 +0000)
* sh.h (SLOW_BYTE_ACCESS): Define to 1.
(BOOL_TYPE_SIZE): Define.

From-SVN: r25600

gcc/ChangeLog
gcc/config/sh/sh.h

index 3b00577..132267d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Mar  5 19:26:23 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       * sh.h (SLOW_BYTE_ACCESS): Define to 1.
+       (BOOL_TYPE_SIZE): Define.
+
 Fri Mar  5 02:14:54 1999  John Wehle  (john@feith.com)
 
        * function.c (assign_stack_temp_for_type): Abort
index f8ae2c7..2f2a000 100644 (file)
@@ -1548,8 +1548,13 @@ extern struct rtx_def *sh_builtin_saveregs ();
    On the SH, it's only one instruction.  */
 /* #define SLOW_ZERO_EXTEND */
 
-/* Nonzero if access to memory by bytes is slow and undesirable.  */
-#define SLOW_BYTE_ACCESS 0
+/* Nonzero if access to memory by bytes is no faster than for words.  */
+#define SLOW_BYTE_ACCESS 1
+
+/* Force sizeof(bool) == 1 to maintain binary compatibility; otherwise, the
+   change in SLOW_BYTE_ACCESS would have changed it to 4.  */
+
+#define BOOL_TYPE_SIZE (flag_new_abi ? INT_TYPE_SIZE : CHAR_TYPE_SIZE)
 
 /* We assume that the store-condition-codes instructions store 0 for false
    and some other value for true.  This is the value stored for true.  */