2003-09-03 David O'Brien <obrien@FreeBSD.org>
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Sep 2003 03:35:35 +0000 (03:35 +0000)
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Sep 2003 03:35:35 +0000 (03:35 +0000)
optimization/11980
* config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
(PTRDIFF_TYPE): Likewise.
(WCHAR_TYPE_SIZE): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71049 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/freebsd.h

index 62e9d65..55b094a 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2003-09-03  DJ Delorie  <dj@redhat.com>
 
        * targhooks.c: New file.
index c3acda2..9cd46f2 100644 (file)
@@ -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