*** empty log message ***
authorMichael Meissner <meissner@gcc.gnu.org>
Tue, 31 Mar 1992 15:03:39 +0000 (15:03 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Tue, 31 Mar 1992 15:03:39 +0000 (15:03 +0000)
From-SVN: r647

gcc/config/mips/svr3-4.h
gcc/config/mips/svr4-4.h

index d7336b1..c0d98af 100644 (file)
@@ -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 <unistd.h>
+
+#define getpagesize()  sysconf(_SC_PAGE_SIZE)
+#endif /*  L_trampoline */
+
 #include "mips.h"
index 43ec031..fc4969b 100644 (file)
@@ -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 <unistd.h>
+
+#define getpagesize()  sysconf(_SC_PAGE_SIZE)
+#endif /*  L_trampoline */
+
 #include "mips.h"