Message ID | 20241118001037.DA7CC2043C@pchp3.se.axis.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 6C2B3385694F for <patchwork@sourceware.org>; Mon, 18 Nov 2024 00:11:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C2B3385694F Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256 header.s=selector1 header.b=UGT3vLB2 X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on20600.outbound.protection.outlook.com [IPv6:2a01:111:f403:260e::600]) by sourceware.org (Postfix) with ESMTPS id AADD9385AC20 for <newlib@sourceware.org>; Mon, 18 Nov 2024 00:10:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AADD9385AC20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AADD9385AC20 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:260e::600 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1731888641; cv=pass; b=ndwiz/q6zy4B8DaK48ycnpHOSmZSjKSUPe9MyEgl32rXGi8gMhaGIDRbWNbSDNzbT9bKEZAnBK3eGOo82HPHwhuw/YNCNc3zvEaQUVWILR30U6zZ+ng17a6tQrIfIc0hw3I8aqDFKz2ztBoRJn4MBBHEQfXlOMqXCs5FZ1rupis= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1731888641; c=relaxed/simple; bh=A6KCE/972s91FUtQsM5enOk605gkIOGmsPBp8ztV7oc=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=rVTDMZ5f6nLrNTQJyeMMWSHDrUX3eCjoMoZuj5/JKOBKdvcLpApUSYJo3tGLADUSSdE3AzmrF8MXEGE8sJ3jHAyPxnhABiof9Rd5oWRv6gd9loEP43UHOOlWa1nts8vxNmjPdEZ6JHB24CdEpZ4uAIp+VkM5/bFV2g0yuXYOCV8= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AADD9385AC20 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=t4VWj0eLrz4qiYDQ3VMRBjrqlUs6+k/WyhJK6uQjWOFxQIX/SYwqa/djGVkkqQ+yksNGieoSpb4XcKr5CrUIe3Wr+zvKBLyhsWNm6MLPgaf82nv7MmNvyDt/NES87in0tEtYow1lHNEGe4p2Iz6LEAePubBHz9yC0VRSaia2cb7ZWNP50UBh+eptZX0x7ItR+zyRVp0Dc+BNFaIS3klUERSuA9aoLe/5PIoxzNgAkLCY9F7riZNgIomxw6tW2aRPcuxDuSO+cneelh9SLtKoO9n7n4gyJn6fDnzfsjNvSGxwS09d5SRG417wJaI0Uw5d311XvDLfsa6s27I2/4xAjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=psUv7mIg2oyfzddX66nvVRK58frQ2T9NEzfS9n4FOP4=; b=gHQht1RDlvuZoZ047wB3HqYofNEjstwFQDD2MVdAarzD6T5c5oqit1I0DjE+uqZ/vFPFxg8GlQYIUSX8wiWmDckSUOA6WV8nSCitfnCNmKyFO69agghWEbgFiJkgxl3CwriDj/QCNuFtESSedBbJFz9ymS/eQDlXiV+BiAYY3Ol2TwJPrBPP2wE2Xxcmpt0BQoIGHxq7FoSLbqo8UyYjkgc4TBa2wgdBypsiLsKpoMYCPPoet3ncztSjnOuo+DDZVG0tXI3zgt7P9FxJcD+k02G1VEBbrmpaUUJIiY2dRIJht2OFW5PALJWpDa2zhfourGcDNUcslZ3uNQRTxoM8PA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=sourceware.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=psUv7mIg2oyfzddX66nvVRK58frQ2T9NEzfS9n4FOP4=; b=UGT3vLB2Pv0Z3O8kLwExT2f1HVD2COKb/HTfDsDepBrLDAeH7Xm56pCIUqZ2DazHHlJR59avHZZRxLx/aSaU6Xn8OP+/ZjVYaa4Oby6zVqX8XSPJw630fxOJDbaDeoEh+5mh9KXsfwOHBQd0Jaq+FoWFtVFBbTuDtwofqY2U8o4= Received: from AM0PR01CA0087.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::28) by PA1PR02MB10984.eurprd02.prod.outlook.com (2603:10a6:102:480::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.22; Mon, 18 Nov 2024 00:10:38 +0000 Received: from AM4PEPF00027A67.eurprd04.prod.outlook.com (2603:10a6:208:10e:cafe::90) by AM0PR01CA0087.outlook.office365.com (2603:10a6:208:10e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.20 via Frontend Transport; Mon, 18 Nov 2024 00:10:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by AM4PEPF00027A67.mail.protection.outlook.com (10.167.16.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8158.14 via Frontend Transport; Mon, 18 Nov 2024 00:10:38 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 18 Nov 2024 01:10:37 +0100 Received: from se-intmail01x.se.axis.com (10.4.0.28) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Mon, 18 Nov 2024 01:10:37 +0100 Received: from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id DF05D280; Mon, 18 Nov 2024 01:10:37 +0100 (CET) Received: by pchp3.se.axis.com (Postfix, from userid 171) id DA7CC2043C; Mon, 18 Nov 2024 01:10:37 +0100 (CET) From: Hans-Peter Nilsson <hp@axis.com> To: <newlib@sourceware.org> Subject: [COMMITTED] libgloss: cris: Correct lcrt0.c for C23 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Message-ID: <20241118001037.DA7CC2043C@pchp3.se.axis.com> Date: Mon, 18 Nov 2024 01:10:37 +0100 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM4PEPF00027A67:EE_|PA1PR02MB10984:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b1bd9ea-f35a-4f20-386a-08dd07656e80 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?q?hSE+FzezPm2Z1PQ2hHPw08yBz7?= =?iso-8859-1?q?VnFhH/HKlKltAk7K4n1z//b7SaQd2Ie3XM37KAzlenQRJlQUHYrRtyjGUzms?= =?iso-8859-1?q?dO8irDQ3VnzdO40te+UDKybJdR5/ZuoJybS8O/5R+bFYIWN7aU9Yx+nm0xXz?= =?iso-8859-1?q?V+sXb7cIkS/PRzWy/S/lvq1Bq81TMqCKvzHcZlYJjpKBAgb6ADHr4JBDpYF8?= =?iso-8859-1?q?lEgQIE0aAWhLRCfHoh0kjYg+LBtQ+rTKmscknAxib2lvutG8hFt1lN3EWZA5?= =?iso-8859-1?q?+st0lc6i9ZlWARQceEhonm20k1Rem0rO4NSi+ukVGGJXDbXj0aV3sMEtSsik?= =?iso-8859-1?q?GOShliN7LJ9aBm+DKF/z9JUen7o4W4X9Am1It1GOQll8eOZVT7gR1DP2Fu16?= =?iso-8859-1?q?+Tf943T68+AaQx/Qjm8DvWMlsg9D6MgjsGbXFSZ4nXdUpe6YkbcxXEHov8eR?= =?iso-8859-1?q?nctat2pZyeLhEebmZW2ZW/DdQp35B7nQjv9YYclTHeUrzeGpE9Hp17udgERv?= =?iso-8859-1?q?9Dt6GH86nAO4tBxKpH+UUYjDDmy0EliBpjs554GtlbSMoQqTlmF+e4HcQ5SI?= =?iso-8859-1?q?+4hgaQGW+hIJjjMRud9yPBGtzydR4ZHQ4cElt/Xf2BwZulnSqZ7b0IxQcS1/?= =?iso-8859-1?q?WORpZSgeFTf1HOgwMXpwIa4rfrQE/yb75IFfOlm9ekOVgGGLsJxizt8phKDp?= =?iso-8859-1?q?maROIXbOwSEtMsjzZHITzEnhfqlsuovpBAQjfSGiqWY+Q+4IQwkEiWV/iR/O?= =?iso-8859-1?q?cLYn2Ss8aGeyhDptzhUBr9ASogSPp3PmkDEqQqgkV0mTDnBPKLx1s1SHf8bo?= =?iso-8859-1?q?SVWDUVfGdy51RSR6X6oS9mq908b2KYKVbmI9azUWRCUXXXvB1upBQ747XSCT?= =?iso-8859-1?q?173XamQolhO9P6U7JBW2BczUfXjNrts6DrygxvRhlFbJGTQir774Y+hmPXoy?= =?iso-8859-1?q?Ws00Ueg1UP6zYuKrBt99XzJdnuO1RIpyPL2X13UNbxZHdAOmpuv7WeCpP5v0?= =?iso-8859-1?q?fXJzxpFadbUPfWZ/wmndZI6DTaOxldog2xCocPqOhifqsAIcADTbYQyo58vP?= =?iso-8859-1?q?P+kqtEVcUffOb7fScr1L3dsv/QDVguHcw1+BP8y4Qf27Cp7OKOvTcGaTdWi8?= =?iso-8859-1?q?TD0iouxGydRcdUvIxeOcsga9bEa71ePVVi+OfJl0ZFahw7V7gF8N1MRFnLAS?= =?iso-8859-1?q?TqWH2PTeVhd7RZJCTGPZI8d3J0Dv/1LQ+OEB8kMDQLuYXQsfz8q8zp1XT1sp?= =?iso-8859-1?q?KK2x8SnCqYs7LyOaxot37gJjffWGzWtcieCROCB+JBIxMLDdN7FK8WhGagJd?= =?iso-8859-1?q?MlEHBO/dNKsZ+ENdcBApIKpiXWjml65+frlleLt9Qr6Lx1cUvNE4kfsmnW84?= =?iso-8859-1?q?IYhGuBr3fG0Yv82011TU51T6YhsJxzlaLBxBGdQYQZ/NlngzWMWZgq3pmJVL?= =?iso-8859-1?q?T+DGiUj5BMAtovRQatWSSg/A=3D=3D?= X-Forefront-Antispam-Report: CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(1800799024)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2024 00:10:38.3154 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2b1bd9ea-f35a-4f20-386a-08dd07656e80 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100]; Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00027A67.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR02MB10984 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP 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 |
[COMMITTED] libgloss: cris: Correct lcrt0.c for C23
|
|
Commit Message
Hans-Peter Nilsson
Nov. 18, 2024, 12:10 a.m. UTC
With this, a combined build (gcc+newlib) for --target=cris-elf gets no new regressions at r15-5326-gf242f79b8afe. FWIW, there are lots of warnings (156 for cris-elf with its three multilibs) for "old-style function definition [-Wold-style-definition]" in the generic parts of newlib. Committed. -- >8 -- GCC commit r15-5326-gf242f79b8afe defaults to -std=gnu23, and in C23 void foo() means void foo(void), so old-style prototypes now get a compilation error: /x/libgloss/cris/lcrt0.c:107:1: error: conflicting types for 'start1';\ have 'void(int, char **, char **)' 107 | start1 (int argc, char **argv, char **env) | ^~~~~~ /x/libgloss/cris/lcrt0.c:105:13: note: previous declaration of 'start1\ ' with type 'void(void)' 105 | static void start1 () __asm__ ("__start1") __attribute ((__use\ d__)); Fix by providing a full prototype. --- libgloss/cris/lcrt0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libgloss/cris/lcrt0.c b/libgloss/cris/lcrt0.c index 0aae3c279719..c1406155aee5 100644 --- a/libgloss/cris/lcrt0.c +++ b/libgloss/cris/lcrt0.c @@ -1,5 +1,5 @@ /* Support for cris*-axis-linux-gnu and src/sim/cris simulator. - Copyright (C) 2000-2005, 2017, 2023 Axis Communications. + Copyright (C) 2000-2005, 2017, 2023, 2024 Axis Communications. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -102,7 +102,7 @@ extern void __init__start (void) __attribute ((weak)); extern void __aout__ctors (void) __attribute ((weak)); extern int main (int argc, char **argv, char **env); -static void start1 () __asm__ ("__start1") __attribute ((__used__)); +static void start1 (int, char **, char **) __asm__ ("__start1") __attribute ((__used__)); static void start1 (int argc, char **argv, char **env) {