--- gcc/config/m68k/isi.h 2018/04/24 18:10:24 1.1 +++ gcc/config/m68k/isi.h 2018/04/24 18:14:41 1.1.1.2 @@ -31,11 +31,10 @@ the Free Software Foundation, 675 Mass A #define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__}" -/* If the 68881 is used, link must load libmc.a instead of libc.a */ +/* If the 68881 is used, link must load libmc.a before libc.a. */ -#define LIB_SPEC "%{msoft-float:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}} \ -%{!msoft-float:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}} \ -%{g:-lg}" +#define LIB_SPEC "%{!msoft-float:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}} \ +%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg}" #else /* Define __HAVE_68881__ in preprocessor if -m68881 is specified. @@ -45,14 +44,13 @@ the Free Software Foundation, 675 Mass A /* If the 68881 is used, link must load libmc.a instead of libc.a */ -#define LIB_SPEC "%{!m68881:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}} \ -%{m68881:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}} \ -%{g:-lg}" +#define LIB_SPEC "%{m68881:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}} \ +%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg}" #endif /* Names to predefine in the preprocessor for this target machine. */ -#define CPP_PREDEFINES "-Dunix -Dmc68000 -Dis68k" +#define CPP_PREDEFINES "-Dunix -Dmc68000 -Dis68k -Asystem(unix) -Asystem(bsd) -Acpu(m68k) -Amachine(m68k)" /* This is BSD, so it wants DBX format. */