Message ID | 20241107164643.15339-1-iain@sandoe.co.uk |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=inmYgCDl; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xknzk32vPz1xyM for <incoming@patchwork.ozlabs.org>; Fri, 8 Nov 2024 03:47:14 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 632E53858D28 for <incoming@patchwork.ozlabs.org>; Thu, 7 Nov 2024 16:47:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id 261BE3858D20 for <gcc-patches@gcc.gnu.org>; Thu, 7 Nov 2024 16:46:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 261BE3858D20 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 261BE3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::329 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730998009; cv=none; b=mGGVPUxzh6LJycOLJYZlWGxBwGazu0PUlR85ZF3m+LcUPwPS+WvIY8IC1gWl6dqo7TuBlld6nH7dZnFl7jzkFexFaU34I1ArbH+Ex+RG5bT61suMzd1g3u/LoSmD2hGRzfQQ0p9pVia6tGVJ3ScatcpGTCaIB2iquy7aYvvBK9E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730998009; c=relaxed/simple; bh=8BREMj5QMr3cPeltLzkCA3ztaHp9hdSKd596rl6eh7c=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=gJ0caTZVT+3kpQ6/2MHs25VnWyj6pzeBSXq9sCUSJ7PkOm4L1i43SA1gH+adjK2Cjd30mU9eirKWZuY/n2gGsNaXlmQLKAVBF1qGxjnve5IuE8++Mw78JJmBGeTwGw4zKQi688RxG7Mz25Ozt4LHf9+Qroa/iBSfLIJdijO6U8c= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-431695fa98bso9187045e9.3 for <gcc-patches@gcc.gnu.org>; Thu, 07 Nov 2024 08:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730998005; x=1731602805; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Qjx0twHJoyoV0/4f81bbIm6ZQW119Is3gp75XafOfzk=; b=inmYgCDlsD3WVTvXQtDQgGiA6gXR9YzipTWlolqGPHPCDUab8J9/St1cRwrcVz/B0h EFVhNQRt5EYUps3gli3WFwusbUj1lEWlqwPcUmFa51S1Uxoune4BSi5oH/WQvwA6dlYo xwndrI1rdwiahfAjcrges2pq9I4ftayI92CLDJvx+MzJiiAqMQF8CtiqmkRYL1PohM7Y wPuCCzE7wl/F8D1pE2pPIoL6ddRD9DtKU/Yw4aN8JzDRMOBGJUwQQpaHz637ouRsTz+M Rrn8/Dm5jRUDUcVzHDlTNU6nqX+gcwnCdI53i8pUAP15psAmwxaEZbBtYz3Qqeh+CvdB akrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730998005; x=1731602805; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Qjx0twHJoyoV0/4f81bbIm6ZQW119Is3gp75XafOfzk=; b=Lpf4WdJ8R/nrjozeC+4RAUW5HqoYQr8etkP/n8EbdSwqYFRNzx5Qhigp092MqplcBk 7PB1mwGTiaSeS1rEAFtfN9HDXaRYgy4H+mQOC12MHbMQ8mWaiZbrkWYXZo9h1w03J08U h2gY6iBj0BsbRlOWLQBQMVvFps/yzPRYwZj74Z81oaLKhjMmYDMLTL/cj4HnDRfris49 OpNlwvr+ij0/LrvXAHy2DT6Fs3TUu4Pa1GX8pi/FnDaZak0fyVj5QTSf403HAKdIBcja q2FvFN2na/P+mDpC1jRWQz4qLsySMtuCvPS9mSoNlJYA11l+e0DnfO9I2wsU66lVRYGs vSrQ== X-Gm-Message-State: AOJu0YyA5ecPEKHwNC5uxlcSENhr3PLqeEh+r07eqFrdsVRXanC+mItn fCdVeNDELja868hoinTCJPRPxahR61iWmBFybiL8Jmrf6iQMoP8Ej4/xjg== X-Google-Smtp-Source: AGHT+IEFueg3u2vR1MpfokoDoy3UvMYUJFplyPgtR/LQ5ngOoTyTt610KxtTgFlDUTHTKin60qsR5Q== X-Received: by 2002:a05:600c:1c01:b0:431:9a68:ec84 with SMTP id 5b1f17b1804b1-4319ad04780mr362988065e9.23.1730998004576; Thu, 07 Nov 2024 08:46:44 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432b054a5ccsm31089945e9.11.2024.11.07.08.46.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 07 Nov 2024 08:46:44 -0800 (PST) From: Iain Sandoe <iains.gcc@gmail.com> X-Google-Original-From: Iain Sandoe <iain@sandoe.co.uk> To: gcc-patches@gcc.gnu.org Subject: [pushed] Darwin: Fix a narrowing warning. Date: Thu, 7 Nov 2024 16:46:43 +0000 Message-Id: <20241107164643.15339-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[pushed] Darwin: Fix a narrowing warning.
|
expand
|
diff --git a/gcc/config/darwin.cc b/gcc/config/darwin.cc index ae821e32012..4e495fce82b 100644 --- a/gcc/config/darwin.cc +++ b/gcc/config/darwin.cc @@ -90,7 +90,7 @@ along with GCC; see the file COPYING3. If not see typedef struct GTY(()) cdtor_record { rtx symbol; int priority; /* [con/de]structor priority */ - int position; /* original position */ + unsigned position; /* original position */ } cdtor_record; static GTY(()) vec<cdtor_record, va_gc> *ctors = NULL;
Tested on x86_64-darwin, pushed to trunk, thanks Iain --- 8< --- cdtor_record needs to have an unsigned entry for the position in order to match with vec_safe_length. gcc/ChangeLog: * config/darwin.cc (cdtor_record): Make position unsigned. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> --- gcc/config/darwin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)