From 428ddbf0550d70985f5ca5cab6470502c9c2d1f9 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Sat, 16 May 2009 21:46:53 +0000 Subject: [PATCH] config.gcc (use_gcc_stdint): Set to wrap. * config.gcc (use_gcc_stdint): Set to wrap. * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE, UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define. From-SVN: r147622 --- gcc/ChangeLog | 12 ++++++++++++ gcc/config.gcc | 1 + gcc/config/darwin.h | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2d4bd97..76412d4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2009-05-16 Francois-Xavier Coudert + + * config.gcc (use_gcc_stdint): Set to wrap. + * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, + INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, + UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, + INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, + UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE, + INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE, + UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, + UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define. + 2009-05-16 Joseph Myers * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and diff --git a/gcc/config.gcc b/gcc/config.gcc index 341265f..35e8b4b 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -413,6 +413,7 @@ case ${target} in extra_objs="darwin.o" extra_gcc_objs="darwin-driver.o" default_use_cxa_atexit=yes + use_gcc_stdint=wrap case ${enable_threads} in "" | yes | posix) thread_file='posix' ;; esac diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 050773f..f855753 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -76,6 +76,38 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE 32 +#define INT8_TYPE "signed char" +#define INT16_TYPE "short int" +#define INT32_TYPE "int" +#define INT64_TYPE "long long int" +#define UINT8_TYPE "unsigned char" +#define UINT16_TYPE "short unsigned int" +#define UINT32_TYPE "unsigned int" +#define UINT64_TYPE "long long unsigned int" + +#define INT_LEAST8_TYPE "signed char" +#define INT_LEAST16_TYPE "short int" +#define INT_LEAST32_TYPE "int" +#define INT_LEAST64_TYPE "long long int" +#define UINT_LEAST8_TYPE "unsigned char" +#define UINT_LEAST16_TYPE "short unsigned int" +#define UINT_LEAST32_TYPE "unsigned int" +#define UINT_LEAST64_TYPE "long long unsigned int" + +#define INT_FAST8_TYPE "signed char" +#define INT_FAST16_TYPE "short int" +#define INT_FAST32_TYPE "int" +#define INT_FAST64_TYPE "long long int" +#define UINT_FAST8_TYPE "unsigned char" +#define UINT_FAST16_TYPE "short unsigned int" +#define UINT_FAST32_TYPE "unsigned int" +#define UINT_FAST64_TYPE "long long unsigned int" + +#define INTPTR_TYPE "long int" +#define UINTPTR_TYPE "long unsigned int" + +#define SIG_ATOMIC_TYPE "int" + /* Default to using the NeXT-style runtime, since that's what is pre-installed on Darwin systems. */ -- 2.7.4