* Fix mcore libgloss port for c99/gcc-14
@ 2023-12-23 4:19 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-12-23 4:19 UTC (permalink / raw)
To: newlib
[-- Attachment #1: Type: text/plain, Size: 143 bytes --]
[ So, there were more of these than I remembered :-) ]
Missing headers and prototypes, much like other ports.
Pushed to the trunk.
Jeff L.
[-- Attachment #2: P --]
[-- Type: text/plain, Size: 1348 bytes --]
commit 73ba2873383da9028360052563945f37830f833a
Author: Jeff Law <jeffreyalaw@gmail.com>
Date: Fri Dec 22 21:17:36 2023 -0700
Fix mcore libgloss port for c99/gcc-14
Missing headers and prototypes, much like other ports.
diff --git a/libgloss/mcore/kill.c b/libgloss/mcore/kill.c
index 833fe89d7..5cdd4d1fc 100644
--- a/libgloss/mcore/kill.c
+++ b/libgloss/mcore/kill.c
@@ -14,6 +14,8 @@
*/
#include "glue.h"
+#include <unistd.h>
+
/*
* kill -- go out via exit...
*/
diff --git a/libgloss/mcore/putnum.c b/libgloss/mcore/putnum.c
index 10e298b95..f7e508b87 100644
--- a/libgloss/mcore/putnum.c
+++ b/libgloss/mcore/putnum.c
@@ -14,6 +14,8 @@
*/
#include "glue.h"
+extern void print (char *ptr);
+
/*
* putnum -- print a 32 bit number in hex
*/
diff --git a/libgloss/mcore/raise.c b/libgloss/mcore/raise.c
index e39207792..6286d0eec 100644
--- a/libgloss/mcore/raise.c
+++ b/libgloss/mcore/raise.c
@@ -14,6 +14,9 @@
*/
#include "glue.h"
+extern int _kill (int, int);
+extern int _getpid (void);
+
int
_raise (int sig)
{
diff --git a/libgloss/mcore/sbrk.c b/libgloss/mcore/sbrk.c
index 844958984..1eb8047fc 100644
--- a/libgloss/mcore/sbrk.c
+++ b/libgloss/mcore/sbrk.c
@@ -16,6 +16,8 @@
#include <sys/stat.h>
#include "glue.h"
+extern int _write (int, char *, int);
+
caddr_t
_sbrk (size_t incr)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-23 4:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-23 4:19 Fix mcore libgloss port for c99/gcc-14 Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).