aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Haley <aph@cygnus.com>2000-02-23 14:37:05 +0000
committerAndrew Haley <aph@gcc.gnu.org>2000-02-23 14:37:05 +0000
commit699729979c5feecfdf5dfc50e1991b3732cbd040 (patch)
treedf1019c5fcdf2fa4e5b9fba72f6880d9616099b3 /gcc
parent4eda9c65825904909717aafc7d351629759b9eb7 (diff)
downloadgcc-699729979c5feecfdf5dfc50e1991b3732cbd040.zip
gcc-699729979c5feecfdf5dfc50e1991b3732cbd040.tar.gz
gcc-699729979c5feecfdf5dfc50e1991b3732cbd040.tar.bz2
mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
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. From-SVN: r32113
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/mips/mips.h8
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7705aa9..6a7833b5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 17b520e..7653e84 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