2000-02-22 Andrew Haley <aph@cygnus.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Feb 2000 14:37:05 +0000 (14:37 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Feb 2000 14:37:05 +0000 (14:37 +0000)
* config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
(SIZE_TYPE): Is 32 bits when using -mgp32.
(PTRDIFF_TYPE): Ditto.

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

gcc/ChangeLog
gcc/config/mips/mips.h

index 7705aa9..6a7833b 100644 (file)
@@ -1,3 +1,9 @@
+2000-02-22  Andrew Haley  <aph@cygnus.com>
+
+       * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
+       (SIZE_TYPE): Is 32 bits when using -mgp32.
+       (PTRDIFF_TYPE): Ditto.
+
 Wed Feb 23 07:26:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
index 17b520e..7653e84 100644 (file)
@@ -773,7 +773,7 @@ while (0)
 /* GAS_ASM_SPEC is passed when using gas, rather than the MIPS
    assembler.  */
 
-#define GAS_ASM_SPEC "%{mcpu=*} %{m4650} %{mmad:-m4650} %{m3900} %{v}"
+#define GAS_ASM_SPEC "%{mcpu=*} %{m4650} %{mmad:-m4650} %{m3900} %{v} %{mgp32} %{mgp64}"
 
 /* TARGET_ASM_SPEC is used to select either MIPS_AS_ASM_SPEC or
    GAS_ASM_SPEC as the default, depending upon the value of
@@ -4659,12 +4659,14 @@ while (0)
 
 #ifndef SIZE_TYPE
 #define NO_BUILTIN_SIZE_TYPE
-#define SIZE_TYPE (Pmode == DImode ? "long unsigned int" : "unsigned int")
+#define SIZE_TYPE (Pmode == DImode || !TARGET_64BIT            \
+                  ? "long unsigned int" : "unsigned int")
 #endif
 
 #ifndef PTRDIFF_TYPE
 #define NO_BUILTIN_PTRDIFF_TYPE
-#define PTRDIFF_TYPE (Pmode == DImode ? "long int" : "int")
+#define PTRDIFF_TYPE (Pmode == DImode || !TARGET_64BIT         \
+                     ? "long int" : "int")
 #endif
 
 /* See mips_expand_prologue's use of loadgp for when this should be