From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id 3FA303858030; Thu, 21 Dec 2023 19:43:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FA303858030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703187838; bh=LPQnfZAawgxpfDXVBZtqrQUEWfVzhrJpYt+OpjFQQj4=; h=From:To:Subject:Date:From; b=RCrF8L85zJ9riZu6ZCTaE/mzuZD8i9o9buvmGQGa9g8+jQm7VFrZ+Vuadm7qavq1s dRaRZepk/faJxzgtXJlpa1jupIo2QV7VgwfGIRAs80r9mJw5Z46foDvuZRdE1zOw5B cduoQMinA2qqCxkYRzsfqnLTtVtnfGtvtTnUvbWQ= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jeff Law To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Fix iq2000 libgloss for c99/gcc-14 X-Act-Checkin: newlib-cygwin X-Git-Author: Jeff Law X-Git-Refname: refs/heads/master X-Git-Oldrev: 188ca64934e610666bd05186395429bb2407c264 X-Git-Newrev: bdcfea3a2473b378306aa7f008f2fbcb36ee00e5 Message-Id: <20231221194358.3FA303858030@sourceware.org> Date: Thu, 21 Dec 2023 19:43:58 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dbdcfea3a247= 3b378306aa7f008f2fbcb36ee00e5 commit bdcfea3a2473b378306aa7f008f2fbcb36ee00e5 Author: Jeff Law Date: Thu Dec 21 12:43:27 2023 -0700 Fix iq2000 libgloss for c99/gcc-14 =20 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" =20 =20 -_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" =20 =20 -_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" =20 =20 -_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" =20 =20 +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 #include "trap.h" =20 +int _write (int, char *, size_t); =20 caddr_t _sbrk (size_t incr)