--- gcc/config/decrose.h 2018/04/24 17:51:37 1.1 +++ gcc/config/decrose.h 2018/04/24 18:00:00 1.1.1.3 @@ -20,6 +20,9 @@ the Free Software Foundation, 675 Mass A #define DECSTATION #define OSF_OS +#define HALF_PIC_DEBUG TARGET_DEBUG_B_MODE +#define HALF_PIC_PREFIX "$Lp." + #include "halfpic.h" #define CPP_PREDEFINES "-DOSF -DOSF1 -Dbsd4_2 -DMIPSEL -Dhost_mips -Dmips -Dunix -DR3000 -DSYSTYPE_BSD" @@ -29,7 +32,8 @@ the Free Software Foundation, 675 Mass A %{pipe:%e:-pipe not supported} \ %{EL} %{!EL:-EL} \ %{EB: %e-EB not supported} \ - %{!mrnames: -nocpp} \ + %{!mrnames: %{!.s:-nocpp} %{.s: %{cpp} %{nocpp}}} \ + %{mips1} %{mips2} %{mips3} \ %{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3} \ %{g} %{g0} %{g1} %{g2} %{g3} \ %{K} %{Q}} \ @@ -45,28 +49,27 @@ the Free Software Foundation, 675 Mass A %{.s:%i} %{!.s:%g.s}}}" #define CPP_SPEC "\ -%{.S: -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \ -%{.cc: -D__LANGUAGE_C_PLUS_PLUS} \ -%{.cxx: -D__LANGUAGE_C_PLUS_PLUS} \ -%{.C: -D__LANGUAGE_C_PLUS_PLUS} \ -%{.m: -D__LANGUAGE_OBJECTIVE_C} \ -%{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}" +%{.S: -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY} \ + -ULANGUAGE_C -U__LANGUAGE_C__} \ +%{.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: -D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}" #define LINK_SPEC "\ %{G*} \ %{mmips-as: \ %{EL} %{!EL: -EL} \ %{EB: %e-EB not supported} \ + %{mips1} %{mips2} %{mips3} \ %{bestGnum}} \ %{!mmips-as: \ %{v*: -v} \ - %{pic-none: -noshrlib} %{noshrlib} \ - %{!pic-none: -warn_nopic} \ - %{nostdlib} %{glue}}" - -/* For now, force static libraries instead of shared, but do so that - does not use -noshrlib, since the old linker does not provide it. */ -#define LIB_SPEC "%{!pic-none: %{!pic-lib: -L/usr/ccs/lib }} -lc" + %{!noshrlib: %{pic-none: -noshrlib} %{!pic-none: -warn_nopic}} \ + %{nostdlib} %{noshrlib} %{glue}}" + +#define LIB_SPEC "-lc" #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}" @@ -106,4 +109,26 @@ the Free Software Foundation, 675 Mass A our own exit function. */ #define HAVE_ATEXIT +/* Generate calls to memcpy, etc., not bcopy, etc. */ +#define TARGET_MEM_FUNCTIONS + +/* A C statement to output assembler commands which will identify + the object file as having been compiled with GNU CC (or another + GNU compiler). + + If you don't define this macro, the string `gcc2_compiled.:' is + output. This string is calculated to define a symbol which, on + BSD systems, will never be defined for any other reason. GDB + checks for the presence of this symbol when reading the symbol + table of an executable. + + On non-BSD systems, you must arrange communication with GDB in + some other fashion. If GDB is not used on your system, you can + define this macro with an empty body. + + On OSF/1, gcc2_compiled. confuses the kernel debugger, so don't + put it out. */ + +#define ASM_IDENTIFY_GCC(STREAM) + #include "mips.h"