+2009-07-08 DJ Delorie <dj@redhat.com>
+
+ * m32c/sbrk.c (sbrk): Change to take ptrdiff_t, not int.
+
2009-07-01 Anthony Green <green@moxielogic.com>
* moxie/crt0.S (_start): Clear BSS at startup. Register _fini()
extern void _set_heaptop(void *ptr);
+/* Normally these would be in unistd.h but we don't rely on that being
+ available during this build. */
+#if defined(__r8c_cpu__) || defined(__m16c_cpu__)
+#define PTRDIFF_T int
+#else
+#define PTRDIFF_T long
+#endif
+
char *
-sbrk(int adj)
+sbrk(PTRDIFF_T adj)
{
extern char end;
static char *heap = &end;