One-byte bools for 64-bit Darwin

Stan Shebs shebs@apple.com
Fri Dec 3 06:05:00 GMT 2004


Still another tidbit for 64-bit Darwin; bools are supposed to be
one byte in size, leaving 32-bit Darwin as the sole config in all
of GCC with 4-byte bools.

Stan

2004-12-01  Stan Shebs  <shebs@apple.com>

        * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
        Darwin default to one-byte bools.

Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.761
diff -p -r1.761 rs6000.c
*** config/rs6000/rs6000.c      2 Dec 2004 06:14:16 -0000       1.761
--- config/rs6000/rs6000.c      3 Dec 2004 06:04:34 -0000
*************** rs6000_override_options (const char *def
*** 1302,1307 ****
--- 1302,1309 ----
    if (DEFAULT_ABI == ABI_DARWIN && TARGET_64BIT)
      {
        rs6000_darwin64_abi = 1;
+       /* Setting to empty string is same as "-mone-byte-bool".  */
+       darwin_one_byte_bool = "";
      }
 
    /* Handle -mabi= options.  */



More information about the Gcc-patches mailing list