--- gcc/config/m68k/lynx.h 2018/04/24 18:20:52 1.1.1.2 +++ gcc/config/m68k/lynx.h 2018/04/24 18:28:02 1.1.1.3 @@ -1,5 +1,5 @@ /* Definitions for Motorola 680x0 running LynxOS. - Copyright (C) 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. This file is part of GNU CC. @@ -15,10 +15,11 @@ 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" -#include "m68k/m68k-coff.h" +#include +#include #undef CTORS_SECTION_ASM_OP #undef DTORS_SECTION_ASM_OP @@ -29,7 +30,7 @@ the Free Software Foundation, 675 Mass A #define ASM_LONG ".long" -#include "lynx.h" +#include /* See m68k.h. 7 means 68020 with 68881. */ @@ -52,3 +53,22 @@ the Free Software Foundation, 675 Mass A {1, 1, 1, 1, 0, 0, 0, 0, \ 1, 1, 0, 0, 0, 0, 0, 1, \ 1, 1, 0, 0, 0, 0, 0, 0 } + +/* Return floating point values in a fp register. This make fp code a + little bit faster. It also makes -msoft-float code incompatible with + -m68881 code, so people have to be careful not to mix the two. */ +#undef FUNCTION_VALUE +#define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE)) + +#undef LIBCALL_VALUE +#define LIBCALL_VALUE(MODE) \ + gen_rtx (REG, (MODE), \ + ((TARGET_68881 \ + && ((MODE) == SFmode || (MODE) == DFmode || (MODE) == XFmode)) \ + ? 16 : 0)) + +#undef FUNCTION_VALUE_REGNO_P +#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (TARGET_68881 && (N) == 16)) + +#undef NEEDS_UNTYPED_CALL +#define NEEDS_UNTYPED_CALL 1