aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/misc.c
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2002-02-09 00:50:05 +0000
committerAnthony Green <green@gcc.gnu.org>2002-02-09 00:50:05 +0000
commitb6459d9a78a55b0a1906357552ccff2d2769fa8a (patch)
treec68d180cfc2d82b626c6a1cf2c655d6cf7a53e32 /boehm-gc/misc.c
parent85aa876c4b7cf8d07c36dccaded74ca02e546eca (diff)
downloadgcc-b6459d9a78a55b0a1906357552ccff2d2769fa8a.zip
gcc-b6459d9a78a55b0a1906357552ccff2d2769fa8a.tar.gz
gcc-b6459d9a78a55b0a1906357552ccff2d2769fa8a.tar.bz2
xscale-elf support
From-SVN: r49626
Diffstat (limited to 'boehm-gc/misc.c')
-rw-r--r--boehm-gc/misc.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/boehm-gc/misc.c b/boehm-gc/misc.c
index 06d7085..842d9a6 100644
--- a/boehm-gc/misc.c
+++ b/boehm-gc/misc.c
@@ -69,7 +69,7 @@
# endif
# endif
-#ifdef ECOS
+#if defined(NOSYS) || defined(ECOS)
#undef STACKBASE
#endif
@@ -744,7 +744,8 @@ int GC_tmp; /* Should really be local ... */
# endif
#endif
-#if !defined(MSWIN32) && !defined(MSWINCE) && !defined(OS2) && !defined(MACOS)
+#if !defined(MSWIN32) && !defined(MSWINCE) && !defined(OS2) \
+ && !defined(MACOS) && !defined(ECOS) && !defined(NOSYS)
int GC_write(fd, buf, len)
int fd;
GC_CONST char *buf;
@@ -767,7 +768,7 @@ size_t len;
}
#endif /* UN*X */
-#if defined(ECOS)
+#ifdef ECOS
int GC_write(fd, buf, len)
{
_Jv_diag_write (buf, len);
@@ -775,6 +776,14 @@ int GC_write(fd, buf, len)
}
#endif
+#ifdef NOSYS
+int GC_write(fd, buf, len)
+{
+ /* No writing. */
+ return len;
+}
+#endif
+
#if defined(MSWIN32) || defined(MSWINCE)
# define WRITE(f, buf, len) GC_write(buf, len)