--- gcc/config/mips-svr4.h 2018/04/24 17:55:24 1.1 +++ gcc/config/mips-svr4.h 2018/04/24 18:00:23 1.1.1.2 @@ -46,4 +46,25 @@ the Free Software Foundation, 675 Mass A #define MACHINE_TYPE "RISC-OS System V.4 Mips" +/* Override defaults for finding the MIPS tools. */ +#define MD_STARTFILE_PREFIX "/svr4/usr/lib/cmplrs/cc/" +#define MD_EXEC_PREFIX "/svr4/usr/lib/cmplrs/cc/" + +/* Mips System V.4 doesn't have a getpagesize() function needed by the + trampoline code, so use the POSIX sysconf function to get it. + This is only done when compiling the trampoline code. */ + +#ifdef L_trampoline +#include + +#define getpagesize() sysconf(_SC_PAGE_SIZE) +#endif /* L_trampoline */ + +/* Use atexit for static constructors/destructors, instead of defining + our own exit function. */ +#define HAVE_ATEXIT + +/* Generate calls to memcpy, etc., not bcopy, etc. */ +#define TARGET_MEM_FUNCTIONS + #include "mips.h"