From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id 207C33858D3C; Sat, 23 Dec 2023 04:23:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 207C33858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703305419; bh=GHxEuvq3ezCs3KMQjICRYXOBEQk1ZMxvNOGuC4We3fA=; h=From:To:Subject:Date:From; b=hk5LDfks+3hDyow/q0HJ4xb9Kk2LBgqrkAaGEvmXsWeENWgAJHWfiPCmVK8u9uIX3 yetuTEUmb/p0YntOpIWe2xKqeKRcM9xTpkSoPo//CgPZwhM3I7XRAB/+M/Xe4tYAJp WLOBWZgjqy81/mf/6u0wMYgu7zz5Ea3DaCWQraGs= 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 most of m32r libgloss for c99/gcc-14 X-Act-Checkin: newlib-cygwin X-Git-Author: Jeff Law X-Git-Refname: refs/heads/master X-Git-Oldrev: 73ba2873383da9028360052563945f37830f833a X-Git-Newrev: 5e79655f380488eb99dd9cc39c30d7c2927fd998 Message-Id: <20231223042339.207C33858D3C@sourceware.org> Date: Sat, 23 Dec 2023 04:23:39 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D5e79655f380= 488eb99dd9cc39c30d7c2927fd998 commit 5e79655f380488eb99dd9cc39c30d7c2927fd998 Author: Jeff Law Date: Fri Dec 22 21:21:52 2023 -0700 Fix most of m32r libgloss for c99/gcc-14 =20 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 Je= ff 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" =20 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" =20 -_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? */ =20 -_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 #include "syscall.h" #include "eit.h" +#include + + +extern int _write (int, char *, int); =20 caddr_t _sbrk (int incr)