public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Fix most of m32r libgloss for c99/gcc-14
@ 2023-12-23  4:23 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-12-23  4:23 UTC (permalink / raw)
  To: newlib-cvs

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

commit 5e79655f380488eb99dd9cc39c30d7c2927fd998
Author: Jeff Law <jeffreyalaw@gmail.com>
Date:   Fri Dec 22 21:21:52 2023 -0700

    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.

Diff:
---
 libgloss/m32r/exit.c  | 2 +-
 libgloss/m32r/kill.c  | 3 ++-
 libgloss/m32r/raise.c | 3 ++-
 libgloss/m32r/sbrk.c  | 4 ++++
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/libgloss/m32r/exit.c b/libgloss/m32r/exit.c
index 5251f0d62..63a64b718 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 d7aaee9ab..48eb0fb18 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 b2dc2f65d..be79df21f 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 bc8209104..92a9b60a1 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-23  4:23 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:23 [newlib-cygwin] Fix most of m32r libgloss 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).