Message ID | 75bee6b7-d89f-4c6a-bcc0-d47f0ee32fd3@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <newlib-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EA79F3858425 for <patchwork@sourceware.org>; Sat, 23 Dec 2023 03:30:56 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by sourceware.org (Postfix) with ESMTPS id CC92E3858D33 for <newlib@sourceware.org>; Sat, 23 Dec 2023 03:30:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CC92E3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CC92E3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::230 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703302246; cv=none; b=qJCqBoaxBbLbEtUZpEk+1AOLDDf8qehphWVl0cszIdJlx8YJAYzE/czxL63EZmYqBR9M/da+jjB5vpzAMlz9Suvg++ZP1tykcfdLmwSZBKPvdXrnfjkI7kyXk3aMVCud08Y9tFd4m2pCGwFDKLC0s+/uz4aFfjZEWBV0jVmhINk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703302246; c=relaxed/simple; bh=hH7/2rPg0l+F3lXTmzz+WiK91AwvaOW+ji0yIIC5CPI=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=GTqSwM5ZqfMTXI0fKAgg8mCUa6MYn+y4/wv+SxugsTJDpbiY/KWWIyN9A2JzpKtbYrVYlamUAklj6+VtYl4DOVXfudRvwgfiVBD5EducRnKOaS6WKPQlxDQBam567Usc/IIqXvyEgAfFtUOSI1lt3w1zT8RsQkn+ZIwOB4onLgg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3ba2dc0f6b7so1854634b6e.2 for <newlib@sourceware.org>; Fri, 22 Dec 2023 19:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703302241; x=1703907041; darn=sourceware.org; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=5xlVfRgBGSaJNbAXgaky/999IHhn8ksp7BfyGc4EVOc=; b=DO+dV5/z/wMsyu4gwR1S+z9DEo7oZDwUTdJXEIx/WRK56o0iI+W7a2gjIq7GoVtIa2 +SmO+PUO/9KDauhlWIfRT9wD+1WAfmA/01oInHLmy4IABVcb6UIDWWfFv2bwkDRk4n6I eXXANCIXM9suF1uQ8+zbvbFkcGdFCy3n6u9RWBsqwknfTBTUuX/E+IYzEX9wtouGUNRk ToiHNd4Vg9eF1Vn9vQh/MD6b1eZ1imIX1PxAY4kbqCmd7QkJqVmhDnPq8+5CjSMIjpcv dKPqxVPhAykoKON0jQUVcrGHUDLfWbF2c1i7gPefw3KbDvG+T+1B6pOWugQpJMT7F85J msFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703302241; x=1703907041; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5xlVfRgBGSaJNbAXgaky/999IHhn8ksp7BfyGc4EVOc=; b=fJHh1lpa6ZsGP5CN9t7AyAxcT/5vvFYg/LKODRQOacsKPHaw4I/eT3ZvyqTSy5/AP5 Y0VhdoOV2ZMYA2MaZRacul8jJbz0Ml7u4sRW0xNLwbxHrXaUZtI4BV1XCegE4POYijR+ HU5B5Lx7LLRtgzps+i5KEXUgpKOdjDytHfbmNK4aHTOwAIegBQo99CM5Bgphl+18ZX5V 1T+vpGgtF/3Mdnr/8PFePejfnnuNVs90ybTFJTZDT6odTxQDd7k62+exnfPKH1XRqO19 Gm9BPWdMd3PiuEdgF6q4wzgDafF8bvM8Z4hrhXLOO9BY47e0IT84T6ukZTqGxrKa1deb zjGQ== X-Gm-Message-State: AOJu0YwJoaQOSaXdtYMPSbz3yLeUJWr3IEFTttCiVanfMIMIviBE4v1a Ldtu80UCZqGeqfFRiAjqSP8FVUCqndk= X-Google-Smtp-Source: AGHT+IFNdXE97lRHG/kxSMcDMr4rCZ8hlmWg9mLcTnZHDgF49jrvUanBY3wJ1cET0kDZSUiLJ/YusQ== X-Received: by 2002:a05:6808:2115:b0:3bb:8647:3cbd with SMTP id r21-20020a056808211500b003bb86473cbdmr3072554oiw.17.1703302240747; Fri, 22 Dec 2023 19:30:40 -0800 (PST) Received: from [172.31.1.103] ([172.56.168.60]) by smtp.gmail.com with ESMTPSA id ei39-20020a056a0080e700b006d9a0038eadsm285195pfb.57.2023.12.22.19.30.39 for <newlib@sourceware.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Dec 2023 19:30:39 -0800 (PST) Content-Type: multipart/mixed; boundary="------------2Jp8IqLfVLDJRB2m0bUEUJ3l" Message-ID: <75bee6b7-d89f-4c6a-bcc0-d47f0ee32fd3@gmail.com> Date: Fri, 22 Dec 2023 20:30:37 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: newlib@sourceware.org From: Jeff Law <jeffreyalaw@gmail.com> Subject: Fix newlib H8/300 bits for C99/gcc-14 X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list <newlib.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/newlib>, <mailto:newlib-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/newlib/> List-Post: <mailto:newlib@sourceware.org> List-Help: <mailto:newlib-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/newlib>, <mailto:newlib-request@sourceware.org?subject=subscribe> Errors-To: newlib-bounces+patchwork=sourceware.org@sourceware.org |
Series |
Fix newlib H8/300 bits for C99/gcc-14
|
|
Commit Message
Jeff Law
Dec. 23, 2023, 3:30 a.m. UTC
Similar to other patches. This adds a missing prototype and #include to some H8/300 specific code in newlib. Pushed to the trunk given Jeff J's pre-approval for these kinds of changes. Jeff L. commit dc7ee581321c4023f9ffe0c9f609071354ba1512 Author: Jeff Law <jeffreyalaw@gmail.com> Date: Fri Dec 22 20:25:10 2023 -0700 Fix newlib H8/300 bits for C99/gcc-14 Similar to other patches. This adds a missing prototype and #include to some H8/300 specific code in newlib. Pushed to the trunk given Jeff J's pre-approval for these kinds of changes.
diff --git a/newlib/libc/sys/h8300hms/sbrk.c b/newlib/libc/sys/h8300hms/sbrk.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 <sys/types.h> #include <sys/stat.h> +#include <stdlib.h> register char *stack_ptr asm ("sp"); +extern int _write (int, char *, int); caddr_t _sbrk(incr)