]> gcc.gnu.org Git - gcc.git/commitdiff
* sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Tue, 12 Oct 1999 22:31:26 +0000 (22:31 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Tue, 12 Oct 1999 22:31:26 +0000 (23:31 +0100)
From-SVN: r29930

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

index ffb0f942eb39dc8997e807b4a8e2e7cb8efa5fcc..192bbf286a08c5dc2fd2e1df63944a1cbf6271f7 100644 (file)
@@ -1,3 +1,7 @@
+Tue Oct 12 23:28:28 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       * sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
+
 Tue Oct 12 23:19:32 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
 
        * sh.h (REGISTER_MOVE_COST): Change PR_REG to PR_REGS.
index 95317738b0cd9be21753269f50b833455a283543..d65d2824e7429ba9beec96f5770784be63756bea 100644 (file)
@@ -1565,7 +1565,9 @@ extern struct rtx_def *sh_builtin_saveregs ();
 /* 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)
+/* This used to use INT_TYPE_SIZE / CHAR_TYPE_SIZE, but these are
+   not guaranteed to be defined when BOOL_TYPE_SIZE is used.  */
+#define BOOL_TYPE_SIZE (flag_new_abi ? BITS_PER_WORD : BITS_PER_UNIT)
 
 /* 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.  */
This page took 0.079997 seconds and 5 git commands to generate.