aboutsummaryrefslogtreecommitdiff
path: root/libgloss
diff options
context:
space:
mode:
authorJeff Law <jeffreyalaw@gmail.com>2023-12-22 21:21:52 -0700
committerJeff Law <jeffreyalaw@gmail.com>2023-12-22 21:21:52 -0700
commit5e79655f380488eb99dd9cc39c30d7c2927fd998 (patch)
treeaa8f4ec27735b806705abc7ded13a8a9b3a01101 /libgloss
parent73ba2873383da9028360052563945f37830f833a (diff)
downloadnewlib-5e79655f380488eb99dd9cc39c30d7c2927fd998.zip
newlib-5e79655f380488eb99dd9cc39c30d7c2927fd998.tar.gz
newlib-5e79655f380488eb99dd9cc39c30d7c2927fd998.tar.bz2
Fix most of m32r libgloss for c99/gcc-14
Make implicit its explicit, add missing prototypes and header includes. This does not fix m32r-stub.c which needs more than the trivial work that Jeff J has pre-approved.
Diffstat (limited to 'libgloss')
-rw-r--r--libgloss/m32r/exit.c2
-rw-r--r--libgloss/m32r/kill.c3
-rw-r--r--libgloss/m32r/raise.c3
-rw-r--r--libgloss/m32r/sbrk.c4
4 files changed, 9 insertions, 3 deletions
diff --git a/libgloss/m32r/exit.c b/libgloss/m32r/exit.c
index 5251f0d..63a64b7 100644
--- a/libgloss/m32r/exit.c
+++ b/libgloss/m32r/exit.c
@@ -4,7 +4,7 @@
#include "eit.h"
void
-_exit (n)
+_exit (int n)
{
TRAP0 (SYS_exit, n, 0, 0);
}
diff --git a/libgloss/m32r/kill.c b/libgloss/m32r/kill.c
index d7aaee9..48eb0fb 100644
--- a/libgloss/m32r/kill.c
+++ b/libgloss/m32r/kill.c
@@ -3,7 +3,8 @@
#include "syscall.h"
#include "eit.h"
-_kill (n, m)
+int
+_kill (int n, int m)
{
return TRAP0 (SYS_exit, 0xdead, 0, 0);
}
diff --git a/libgloss/m32r/raise.c b/libgloss/m32r/raise.c
index b2dc2f6..be79df2 100644
--- a/libgloss/m32r/raise.c
+++ b/libgloss/m32r/raise.c
@@ -1,5 +1,6 @@
/* ??? Needed? */
-_raise ()
+int
+_raise (void)
{
}
diff --git a/libgloss/m32r/sbrk.c b/libgloss/m32r/sbrk.c
index bc82091..92a9b60 100644
--- a/libgloss/m32r/sbrk.c
+++ b/libgloss/m32r/sbrk.c
@@ -2,6 +2,10 @@
#include <sys/stat.h>
#include "syscall.h"
#include "eit.h"
+#include <stdlib.h>
+
+
+extern int _write (int, char *, int);
caddr_t
_sbrk (int incr)