aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1992-03-31 15:03:39 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1992-03-31 15:03:39 +0000
commit3def670650273da78bc7d72d292acfe5a9e1adcf (patch)
tree7b02b995d5b2a9561a2c50834fb64504674ba020
parent73a3e4ab83670331c666d9d0ed547520582392eb (diff)
downloadgcc-3def670650273da78bc7d72d292acfe5a9e1adcf.zip
gcc-3def670650273da78bc7d72d292acfe5a9e1adcf.tar.gz
gcc-3def670650273da78bc7d72d292acfe5a9e1adcf.tar.bz2
*** empty log message ***
From-SVN: r647
-rw-r--r--gcc/config/mips/svr3-4.h10
-rw-r--r--gcc/config/mips/svr4-4.h10
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/config/mips/svr3-4.h b/gcc/config/mips/svr3-4.h
index d7336b1..c0d98af 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 <unistd.h>
+
+#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 43ec031..fc4969b 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 <unistd.h>
+
+#define getpagesize() sysconf(_SC_PAGE_SIZE)
+#endif /* L_trampoline */
+
#include "mips.h"