aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-05-04 11:22:12 -0700
committerJim Wilson <wilson@gcc.gnu.org>1994-05-04 11:22:12 -0700
commit3a44724c3c44863e1c64ac52c0952f6e0eff0c75 (patch)
tree94a2bfafdfafb02efc9dfe8d9f5c4a7123c9e70b
parent66894d62552f0962974ab34fc049bcd5954317d1 (diff)
downloadgcc-3a44724c3c44863e1c64ac52c0952f6e0eff0c75.zip
gcc-3a44724c3c44863e1c64ac52c0952f6e0eff0c75.tar.gz
gcc-3a44724c3c44863e1c64ac52c0952f6e0eff0c75.tar.bz2
(PTRDIFF_TYPE): Delete.
(CPP_SPEC): Define, overriding ultrix.h version. From-SVN: r7201
-rw-r--r--gcc/config/mips/dec-osf1.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/gcc/config/mips/dec-osf1.h b/gcc/config/mips/dec-osf1.h
index d40e5fe..3c73477 100644
--- a/gcc/config/mips/dec-osf1.h
+++ b/gcc/config/mips/dec-osf1.h
@@ -32,17 +32,27 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "mips/ultrix.h"
-/* Specify size_t, ptrdiff_t, and wchar_t types. */
+/* Specify size_t and wchar_t types. */
#undef SIZE_TYPE
-#undef PTRDIFF_TYPE
#undef WCHAR_TYPE
#undef WCHAR_TYPE_SIZE
#define SIZE_TYPE "long unsigned int"
-#define PTRDIFF_TYPE "int"
#define WCHAR_TYPE "short unsigned int"
#define WCHAR_TYPE_SIZE SHORT_TYPE_SIZE
+#undef CPP_SPEC
+#define CPP_SPEC "\
+%{.S: -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
+%{.s: -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
+%{.cc: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
+%{.cxx: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
+%{.C: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
+%{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \
+%{!.S:%{!.s: -D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}} \
+%{mlong64:-D__PTRDIFF_TYPE__=long\\ int} \
+%{!mlong64:-D__PTRDIFF_TYPE__=int}"
+
/* turn off collect2 COFF support, since ldfcn now has elf declaration */
#undef OBJECT_FORMAT_COFF