+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.
/* 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
#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