public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jeff Law <law@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] Fix mcore libgloss port for c99/gcc-14
Date: Sat, 23 Dec 2023 04:17:57 +0000 (GMT)	[thread overview]
Message-ID: <20231223041757.AE18C3858D3C@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=73ba2873383da9028360052563945f37830f833a

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:
---
 libgloss/mcore/kill.c   | 2 ++
 libgloss/mcore/putnum.c | 2 ++
 libgloss/mcore/raise.c  | 3 +++
 libgloss/mcore/sbrk.c   | 2 ++
 4 files changed, 9 insertions(+)

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)
 {

                 reply	other threads:[~2023-12-23  4:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231223041757.AE18C3858D3C@sourceware.org \
    --to=law@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).