From: Michael Meissner Date: Tue, 31 Mar 1992 15:03:39 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3def670650273da78bc7d72d292acfe5a9e1adcf;p=gcc.git *** empty log message *** From-SVN: r647 --- diff --git a/gcc/config/mips/svr3-4.h b/gcc/config/mips/svr3-4.h index d7336b17545..c0d98af310c 100644 --- a/gcc/config/mips/svr3-4.h +++ b/gcc/config/mips/svr3-4.h @@ -50,4 +50,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define MD_STARTFILE_PREFIX "/sysv/usr/lib/cmplrs/cc/" #define MD_EXEC_PREFIX "/sysv/usr/lib/cmplrs/cc/" +/* Mips System V 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 */ + #include "mips.h" diff --git a/gcc/config/mips/svr4-4.h b/gcc/config/mips/svr4-4.h index 43ec03121d0..fc4969b7ea3 100644 --- a/gcc/config/mips/svr4-4.h +++ b/gcc/config/mips/svr4-4.h @@ -50,4 +50,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #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 */ + #include "mips.h"