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 iq2000 libgloss for c99/gcc-14
Date: Thu, 21 Dec 2023 19:43:58 +0000 (GMT)	[thread overview]
Message-ID: <20231221194358.3FA303858030@sourceware.org> (raw)

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

commit bdcfea3a2473b378306aa7f008f2fbcb36ee00e5
Author: Jeff Law <jeffreyalaw@gmail.com>
Date:   Thu Dec 21 12:43:27 2023 -0700

    Fix iq2000 libgloss for c99/gcc-14
    
    Similar to the others in this space.  Make implicit ints explicit ints. Add
    prototype for _write in sbrk.c.

Diff:
---
 libgloss/iq2000/getpid.c | 3 ++-
 libgloss/iq2000/isatty.c | 4 ++--
 libgloss/iq2000/kill.c   | 3 ++-
 libgloss/iq2000/read.c   | 1 +
 libgloss/iq2000/sbrk.c   | 1 +
 5 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/libgloss/iq2000/getpid.c b/libgloss/iq2000/getpid.c
index 20ab1866e..fea57daff 100644
--- a/libgloss/iq2000/getpid.c
+++ b/libgloss/iq2000/getpid.c
@@ -4,7 +4,8 @@
 #include "trap.h"
 
 
-_getpid (n)
+int
+_getpid (int n)
 {
   return 1;
 }
diff --git a/libgloss/iq2000/isatty.c b/libgloss/iq2000/isatty.c
index 7e63a8c7c..3d8eb1910 100644
--- a/libgloss/iq2000/isatty.c
+++ b/libgloss/iq2000/isatty.c
@@ -4,8 +4,8 @@
 #include "trap.h"
 
 
-_isatty (fd)
-     int fd;
+int
+_isatty (int fd)
 {
   return 1;
 }
diff --git a/libgloss/iq2000/kill.c b/libgloss/iq2000/kill.c
index 40afa6a2c..d63a2f82c 100644
--- a/libgloss/iq2000/kill.c
+++ b/libgloss/iq2000/kill.c
@@ -4,7 +4,8 @@
 #include "trap.h"
 
 
-_kill (n, m)
+int
+_kill (int n, int m)
 {
   return TRAP0 (SYS_exit, 0xdead, 0, 0);
 }
diff --git a/libgloss/iq2000/read.c b/libgloss/iq2000/read.c
index 31d24cce9..2f1878c06 100644
--- a/libgloss/iq2000/read.c
+++ b/libgloss/iq2000/read.c
@@ -4,6 +4,7 @@
 #include "trap.h"
 
 
+int
 _read (int file,
        char *ptr,
        size_t len)
diff --git a/libgloss/iq2000/sbrk.c b/libgloss/iq2000/sbrk.c
index 6dfd93b02..15bd8c8b9 100644
--- a/libgloss/iq2000/sbrk.c
+++ b/libgloss/iq2000/sbrk.c
@@ -4,6 +4,7 @@
 #include <sys/stat.h>
 #include "trap.h"
 
+int _write (int, char *, size_t);
 
 caddr_t
 _sbrk (size_t incr)

                 reply	other threads:[~2023-12-21 19:43 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=20231221194358.3FA303858030@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).