--- gcc/config/m68k/isi.h 2018/04/24 18:10:24 1.1 +++ gcc/config/m68k/isi.h 2018/04/24 18:28:25 1.1.1.3 @@ -16,7 +16,8 @@ GNU General Public License for more deta You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ #include "m68k/m68k.h" @@ -31,11 +32,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 +45,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. */