--- gcc/config/m68k/next.h 2018/04/24 18:14:29 1.1.1.2 +++ gcc/config/m68k/next.h 2018/04/24 18:20:59 1.1.1.3 @@ -1,5 +1,5 @@ /* Target definitions for GNU compiler for mc680x0 running NeXTSTEP - Copyright (C) 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc. + Copyright (C) 1989, 90, 91, 92, 93, 1994 Free Software Foundation, Inc. This file is part of GNU CC. @@ -175,7 +175,7 @@ the Free Software Foundation, 675 Mass A #undef GO_IF_INDEXABLE_BASE(X, ADDR) #define GO_IF_INDEXABLE_BASE(X, ADDR) \ -{ if (GET_CODE (X) == REG && REG_OK_FOR_BASE_P (X)) goto ADDR; } +{ if (LEGITIMATE_BASE_REG_P (X)) goto ADDR; } /* This accounts for the return pc and saved fp on the m68k. */ @@ -204,3 +204,5 @@ the Free Software Foundation, 675 Mass A #define CLEAR_INSN_CACHE(BEG, END) \ asm volatile ("trap #2") +/* GCC is the primary compiler for NeXTSTEP, so we don't need this. */ +#undef PCC_STATIC_STRUCT_RETURN