aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorDavid O'Brien <obrien@FreeBSD.org>2003-09-04 03:35:35 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2003-09-04 03:35:35 +0000
commit04b379ba09f402ebb87e514c38f5e999427ffd29 (patch)
tree88ef59634ea3d2412c5313ccaa4cffede5998aec /gcc/config
parent61f71b34471e03254cdadd61f1418f425101273f (diff)
downloadgcc-04b379ba09f402ebb87e514c38f5e999427ffd29.zip
gcc-04b379ba09f402ebb87e514c38f5e999427ffd29.tar.gz
gcc-04b379ba09f402ebb87e514c38f5e999427ffd29.tar.bz2
freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
2003-09-03 David O'Brien <obrien@FreeBSD.org> optimization/11980 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT. (PTRDIFF_TYPE): Likewise. (WCHAR_TYPE_SIZE): Likewise. From-SVN: r71049
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/freebsd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/i386/freebsd.h b/gcc/config/i386/freebsd.h
index c3acda2..9cd46f2 100644
--- a/gcc/config/i386/freebsd.h
+++ b/gcc/config/i386/freebsd.h
@@ -50,13 +50,13 @@ Boston, MA 02111-1307, USA. */
/* Make gcc agree with <machine/ansi.h>. */
#undef SIZE_TYPE
-#define SIZE_TYPE "unsigned int"
+#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int")
#undef PTRDIFF_TYPE
-#define PTRDIFF_TYPE "int"
+#define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")
#undef WCHAR_TYPE_SIZE
-#define WCHAR_TYPE_SIZE BITS_PER_WORD
+#define WCHAR_TYPE_SIZE (TARGET_64BIT ? 32 : BITS_PER_WORD)
/* Provide a STARTFILE_SPEC appropriate for FreeBSD. Here we add
the magical crtbegin.o file (see crtstuff.c) which provides part