* Fix iq2000 libgloss for c99/gcc-14
@ 2023-12-21 7:13 Jeff Law
2023-12-21 19:07 ` Jeff Johnston
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Law @ 2023-12-21 7:13 UTC (permalink / raw)
To: newlib
[-- Attachment #1: Type: text/plain, Size: 134 bytes --]
Similar to the others in this space. Make implicit ints explicit ints.
Add prototype for _write in sbrk.c.
OK for the trunk?
jeff
[-- Attachment #2: P --]
[-- Type: text/plain, Size: 1339 bytes --]
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fix iq2000 libgloss for c99/gcc-14
2023-12-21 7:13 Fix iq2000 libgloss for c99/gcc-14 Jeff Law
@ 2023-12-21 19:07 ` Jeff Johnston
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Johnston @ 2023-12-21 19:07 UTC (permalink / raw)
To: Jeff Law; +Cc: newlib
[-- Attachment #1: Type: text/plain, Size: 263 bytes --]
Please go ahead.
-- Jeff J.
On Thu, Dec 21, 2023 at 2:13 AM Jeff Law <jeffreyalaw@gmail.com> wrote:
>
> Similar to the others in this space. Make implicit ints explicit ints.
> Add prototype for _write in sbrk.c.
>
> OK for the trunk?
>
> jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-21 19:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-21 7:13 Fix iq2000 libgloss for c99/gcc-14 Jeff Law
2023-12-21 19:07 ` Jeff Johnston
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).