From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id AE18C3858D3C; Sat, 23 Dec 2023 04:17:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE18C3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703305077; bh=rxDi2IAvNGFHJ5dpczyGxl+8/tX8wKxlt4SFTN3t/7E=; h=From:To:Subject:Date:From; b=ijz+bfsT5nuMi/j4JdbQaoiyLD2e+rlIYxE9sM/uibuixoikMu2P+Ii4xKR+DXmR9 K4OBz6JgCmhIs04UEmue1YUNwDILYQXBu/vWTEri6BVhBHsZ7gq8LtXCMbSkFQSzV8 x5sfbjX5yNktJVzVRHwee/6EMJVo3Ms+2vrfb9bg= 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 mcore libgloss port for c99/gcc-14 X-Act-Checkin: newlib-cygwin X-Git-Author: Jeff Law X-Git-Refname: refs/heads/master X-Git-Oldrev: a1a21442bc938681913584d0941dd1c8b3c98fef X-Git-Newrev: 73ba2873383da9028360052563945f37830f833a Message-Id: <20231223041757.AE18C3858D3C@sourceware.org> Date: Sat, 23 Dec 2023 04:17:57 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D73ba2873383= da9028360052563945f37830f833a commit 73ba2873383da9028360052563945f37830f833a Author: Jeff Law Date: Fri Dec 22 21:17:36 2023 -0700 Fix mcore libgloss port for c99/gcc-14 =20 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" =20 +#include + /* * 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" =20 +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" =20 +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 #include "glue.h" =20 +extern int _write (int, char *, int); + caddr_t _sbrk (size_t incr) {