From 699729979c5feecfdf5dfc50e1991b3732cbd040 Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Wed, 23 Feb 2000 14:37:05 +0000 Subject: [PATCH] mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas. 2000-02-22 Andrew Haley * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas. (SIZE_TYPE): Is 32 bits when using -mgp32. (PTRDIFF_TYPE): Ditto. From-SVN: r32113 --- gcc/ChangeLog | 6 ++++++ gcc/config/mips/mips.h | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7705aa9f74f..6a7833b5d45 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-02-22 Andrew Haley + + * 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 * diagnostic.c (init_output_buffer): Handle case of null PREFIX. diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 17b520e4e21..7653e84d1e8 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -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