--- gcc/config/mips/dec-osf1.h 2018/04/24 18:15:50 1.1.1.2 +++ gcc/config/mips/dec-osf1.h 2018/04/24 18:22:05 1.1.1.3 @@ -25,27 +25,34 @@ the Free Software Foundation, 675 Mass A -Asystem(unix) -Asystem(xpg4) -Acpu(mips) -Amachine(mips)" #define LINK_SPEC "\ -%{G*} \ -%{!mgas: \ - %{EL} %{!EL: -EL} \ - %{EB: %e-EB not supported} \ - %{mips1} %{mips2} %{mips3} %{bestGnum} \ - %{shared} %{non_shared} %{call_shared} %{no_archive} %{exact_version} \ - %{!shared: %{!non_shared: %{!call_shared: -non_shared}}}}" +%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \ +%{bestGnum} %{shared} %{non_shared} \ +%{call_shared} %{no_archive} %{exact_version} \ +%{!shared: %{!non_shared: %{!call_shared: -non_shared}}}" #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