From patchwork Sat Dec 23 04:19:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 82782 Return-Path: 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 7BCE43858C5E for ; Sat, 23 Dec 2023 04:19:14 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) by sourceware.org (Postfix) with ESMTPS id 1E7EA3858D3C for ; Sat, 23 Dec 2023 04:19:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1E7EA3858D3C 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 1E7EA3858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::f34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703305145; cv=none; b=SgPmFxsFxnI0s3mFrOyv7/xlfYfy4sl/ip6ep8ZuE+lKRZuczG/UIsEeItFbl6xTT5myAsTn7xfdCG7zQqvCKP5XXLmytna+HlL1tSyufKWE5xj9tP5yHHxwREuGteKpQka+Q9tnRD7EDrKrYJOntO0GZBJou0rwPb+lkbhH5Ok= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703305145; c=relaxed/simple; bh=y/XyWFHRnmSruEM1fqGAqJ32S1Qo8QMrIJiXoeCBOlQ=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=bsDpc321u/+E5YCHVfOiQPmL3mp2pjLBNid24wwm7GTU8JKT8vJoVEFQ7Qe/xUAbSXQC3OUUyQBfy2TnjXG/+n+dnGdOrjWSjNfTOsF8E55ibSU2FO/zPInFfYDjdZvBFFCcoN6BHJiw3YK31D+3XYTatju0xlX4SANx/VyAdbI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-67f8a5ed1a0so11104096d6.2 for ; Fri, 22 Dec 2023 20:19:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703305142; x=1703909942; 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=y/XyWFHRnmSruEM1fqGAqJ32S1Qo8QMrIJiXoeCBOlQ=; b=YGAQuC6KpMpEZRDbbomHwaL8mrbJKzl7+HW254L8BmI4xFrELnq9YhIe7/XTalguTV 5sT9625w3l9UZ7+QZN7XQaWaKZYdc8pA3xjapbVc+T7xec68r9dRqoJ6mVTyWIxeuidM e3wRmU9Ha7NXBgnnfFiWSy8t06TrC5zne0s61Yenj+lIrEMTK7VRyAwW1w1HGk7a0Ds0 6lkLzb+FRELGPM1bCJ+b1P/A3jd5qOciIBI2pWX8E0uABOKX9hc8gTZeRxjPlAemXrql nJtyOpqTL7GBBwB36s4tCib+mrG2GZXvznQdBCijrnvQDEXOFflvhe5wFVxUfe/dLSnv 30yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703305142; x=1703909942; 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=y/XyWFHRnmSruEM1fqGAqJ32S1Qo8QMrIJiXoeCBOlQ=; b=TaGd9T/Iar5X7usHEK4CaXqXQyJ/u6vi0BbMLQGEp4jaJg/zgoF7csmfIoASpb3lDQ oYRn0nVwHycyP4KDTXR8gxD5NqcqO/uo/j3oeXzW3qKWigsKVvmYqBOwyZ4tzo9NR4Xq H9R712GZhTaZkDr02t7nmzPeY5aTN4twps2nMlsGsnhRKl3jLEmZGNb+Eq7w2d3/xONo /ezTQeAnSFAmu6sJBR45pob6dHSSXOMvfm0rVizeKl6bZtfOJySGUczjA3BUqwL385re m+zhSC5WK3qgyPgZX/nGVp0ugpQFGsZhCr4qWX+sd8HydRYYwNIBM327q/1wW5bUZCUm H3iw== X-Gm-Message-State: AOJu0YzL6qNZA1GkHf6XnzpNpGJ6dGyXa2m9VDSVyuDpNaPc1AG7e4F+ OUjeK/urp7JYm83coC5GkNhhCHVsSNs= X-Google-Smtp-Source: AGHT+IHB056WnyghRWUKda0SA+JPsIvp1ngyDwx7YzEDM20EQ0zer/ycDCIqpZolVM3wr5xDOioZyg== X-Received: by 2002:a05:6214:19cf:b0:67f:7789:13df with SMTP id j15-20020a05621419cf00b0067f778913dfmr3741009qvc.71.1703305142516; Fri, 22 Dec 2023 20:19:02 -0800 (PST) Received: from [172.31.1.103] ([172.56.168.60]) by smtp.gmail.com with ESMTPSA id er14-20020a056214190e00b0067f6ef0a8d5sm1839792qvb.115.2023.12.22.20.19.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Dec 2023 20:19:01 -0800 (PST) Message-ID: Date: Fri, 22 Dec 2023 21:19:00 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: newlib@sourceware.org From: Jeff Law Subject: Fix mcore libgloss port for c99/gcc-14 X-Spam-Status: No, score=-9.2 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: newlib-bounces+patchwork=sourceware.org@sourceware.org [ So, there were more of these than I remembered :-) ] Missing headers and prototypes, much like other ports. Pushed to the trunk. Jeff L. commit 73ba2873383da9028360052563945f37830f833a Author: Jeff Law Date: Fri Dec 22 21:17:36 2023 -0700 Fix mcore libgloss port for c99/gcc-14 Missing headers and prototypes, much like other ports. 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" +#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" +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" +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" +extern int _write (int, char *, int); + caddr_t _sbrk (size_t incr) {