--- gcc/config/tm-next.h 2018/04/24 16:53:28 1.1 +++ gcc/config/tm-next.h 2018/04/24 16:58:52 1.1.1.3 @@ -2,6 +2,9 @@ #include "tm-m68k.h" +/* Enable recent gcc to compile under the old gcc in Next release 1.0. */ +#define __inline inline + /* See tm-m68k.h. 7 means 68020/030 with 68881/882. */ #define TARGET_DEFAULT 7 @@ -21,15 +24,17 @@ /* Machine dependent ld options. */ -#define LINK_SPEC "${Z} %{M} %{Mach} %{segcreate*} %{seglinkedit}" +#define LINK_SPEC "%{Z} %{M} %{Mach} %{segcreate*} %{seglinkedit}" /* Machine dependent libraries. */ -#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lsys_p}%{pg:-lsys_p}" +#define LIB_SPEC "%{!p:%{!pg:-lsys_s}} %{pg:-lsys_p}" /* We specify crt0.o as -lcrt0.o so that ld will search the library path. */ #define STARTFILE_SPEC \ - "%{pg:-lgcrt0.o}%{!pg:%{p:-lmcrt0.o}%{!p:-lcrt0.o}}" + "%{pg:-lgcrt0.o}%{!pg: \ + %{p:%e-p profiling is no longer supported. Use -pg instead.} \ + %{!p:-lcrt0.o}}" /* Every structure or union's size must be a multiple of 2 bytes. */