From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id 883213858D33; Sat, 23 Dec 2023 03:25:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 883213858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703301939; bh=US9qZjqTAUjBMS/1YXsMjiS+uvb8oo5qHr1xO9so1Rk=; h=From:To:Subject:Date:From; b=VQkrmP4Q5nHqFLgn7aaetIjVO1LkwCZup7SA2M9uaESxMQRcI1gDZQqOy0yHGJL6o oxxGHrWslWi1VNSbdtQS6OKkZdtgX9ACvO55K/BGA94ch468LFNuWfYFH2t5DFZSae Ehkrt7bqSC2bVLjOyIVW7hOytwGHX0zzfflWZ4Fo= 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 newlib H8/300 bits for C99/gcc-14 X-Act-Checkin: newlib-cygwin X-Git-Author: Jeff Law X-Git-Refname: refs/heads/master X-Git-Oldrev: 7382f54405aa81ca4420a58bb805ab21ef1e0b6b X-Git-Newrev: dc7ee581321c4023f9ffe0c9f609071354ba1512 Message-Id: <20231223032539.883213858D33@sourceware.org> Date: Sat, 23 Dec 2023 03:25:39 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Ddc7ee581321= c4023f9ffe0c9f609071354ba1512 commit dc7ee581321c4023f9ffe0c9f609071354ba1512 Author: Jeff Law Date: Fri Dec 22 20:25:10 2023 -0700 Fix newlib H8/300 bits for C99/gcc-14 =20 Similar to other patches. This adds a missing prototype and #include t= o some H8/300 specific code in newlib. Pushed to the trunk given Jeff J's pre-approval for these kinds of changes. Diff: --- newlib/libc/sys/h8300hms/sbrk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newlib/libc/sys/h8300hms/sbrk.c b/newlib/libc/sys/h8300hms/sbr= k.c index 1456a67eb..a99ae2904 100644 --- a/newlib/libc/sys/h8300hms/sbrk.c +++ b/newlib/libc/sys/h8300hms/sbrk.c @@ -1,8 +1,10 @@ #include <_ansi.h> #include #include +#include =20 register char *stack_ptr asm ("sp"); +extern int _write (int, char *, int); =20 caddr_t=20 _sbrk(incr)