From patchwork Sun Dec 22 00:05:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 852887 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp2769615wrq; Sat, 21 Dec 2024 16:14:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWH5mB/UTjcC9t/ZdkdcCqcoxqN7iebbUM6eaTnJY1fcT7okA1qt6RNilZu31Dkxr7Ff8bvEQ==@linaro.org X-Google-Smtp-Source: AGHT+IGnCSPPOXv+2b2SBSk6fddZRsjwyMp/hWXzcxzd0pk/ue98NVeeO8cut3ISne+AzKXOiDl4 X-Received: by 2002:a05:622a:1316:b0:467:597a:be4d with SMTP id d75a77b69052e-46a4a8ca0c0mr135775601cf.18.1734826479936; Sat, 21 Dec 2024 16:14:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734826479; cv=pass; d=google.com; s=arc-20240605; b=RY32FcK7oewJZCoRKDzn/KHgdCklygf+t3IFpdhUVvTd9hXCYt/3nfBgTIC3UnvIxJ mh7+bqFM/TO3koSQzbc9Ya1GrjhbjzrzdkBceGnCzims9iZ12S6lNUTK6kkSCWgDZc4d e8JoTIzqiQe/Djn+LwCpRaSJP/1u+y+xa+UFXm6+fBhvsbgk7PwJDtZTieEzGyHZie5R g+HTrT9crGwgM2GsyJkU84M9Zi3fg79igQ2+lzX9hN2bvuCT/3x/yquqFKTztoCjm8Wg MZjkILzrjjUWUn3erP87DwsDccsoeWiTX9beQTrLuapPl6+4a7FsLXXSohdshhuRoY7z 57gw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter:arc-filter:dmarc-filter :delivered-to; bh=v7VngvbnFDE2Cj1MDHHqRu3qVfll7DYdZj+JZYPeVV4=; fh=uKlFkH9AUukvL1xmvBA9M7Oe4ntiJIR8HCR4+3TPd4w=; b=T0CJ1v9VTHXfIzZMINKRd01NYi43ip31o/IuqvoSPxqhA50eJLIOn/wlo4rxENK3DS yvb/v9FdC4QPXX1R5CWTcwmY+9pKeivzBpUfEu9ixXn8k9Q4FFtJA9FtkoU5yy1vTfdv ay4fYRTd6uGJRUZgojZzVWUEieFWbGabgbUT+YJCPIM/O8jnzedeVfqYdz/VdOWEJlIq AiRgm1HdsYcMYfKSePkORBYKbFPDyKaZl/vnIq+xLHEpdOoM7q8sLuLEFb1WYi6ltRq5 JXBKZ7BuFK9CpTUt0BjDOPilpXrBpeVAJ/vlbwMNP+4po6Dvk6w6LueQcNDTiHcqF4Jm CH0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YDVgoSFF; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d75a77b69052e-46a3e681862si78710731cf.92.2024.12.21.16.14.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:14:39 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YDVgoSFF; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2A5873858435 for ; Sun, 22 Dec 2024 00:14:39 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id 8DC4F3857C58 for ; Sun, 22 Dec 2024 00:05:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8DC4F3857C58 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 8DC4F3857C58 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::635 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825930; cv=none; b=cNVbyHKFTt+MQPBqq9T4NHhWwMknJs08sRI106f3uLC+931vr/8ZtohQCOn0nN8sfx3gIrIauzpsYS0+O4/idGJZbe9UuQVdCf54TGWrVcF5lUtU8OstFTUdYFvbkqwd9GEerh+OY5kXxDeLE+gPHJFS+E8MhWL4MVoiuNGMnso= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825930; c=relaxed/simple; bh=SqEdihGz0j9aj/+VoS4Zbu1Tm3eCkluoFVsAt7+t64M=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nbAvkHWcd64cpu8mXVaV/rO18LQWWFSAk+7v4D+Z4NXGDEfjRIDGyS4QnkyX0u/7HAaGsZkL4q1ApxBZV9uVDiaiRfPQo4a2ZF6d8iN25FmAbG8FK2R9N3IuQ31nulOjLKVGXZXaIg+KSwHB7Pib1QXyVJCDNUm/4HEEzdlZARo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DC4F3857C58 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=YDVgoSFF Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-2165cb60719so29698815ad.0 for ; Sat, 21 Dec 2024 16:05:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734825924; x=1735430724; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=v7VngvbnFDE2Cj1MDHHqRu3qVfll7DYdZj+JZYPeVV4=; b=YDVgoSFFL7mM26ARE5cyJNhutRVBQh11Ewmo1ZsyJ3ct6M5z5z41wZDC8/h0+5sAby hKhZbGbq6RUwE7CXehlDtY4sLqkbQ2BFWGAECkmLvI55zApY0EFSOSYjXxHRrLG6rxz7 P80L0iI30N1pZdy02QXoRJ1tkj3cRLOHgT7MYnt+iZvzltSp/XovUfSvBiJ+d30Dm93u H+nTi7rGf47fkhDmt5lH63sheTj/oeK9zmAwn1kdqM0aMTZm/4S75sdaI06RmA9YT5Kg BfJptS8O1j/pZpatoiKG4LhZiSTNN0y6wbmvrQwHOXYy1PCqrYZUjqZ9u/HSk1T5IA9C pdGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734825924; x=1735430724; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v7VngvbnFDE2Cj1MDHHqRu3qVfll7DYdZj+JZYPeVV4=; b=PY/c+fOMe4m26IPw1hZpcJuFpIpc/ubzw5nRhCslrdGApU+aFlL0JtLrDG1fDnBjCp gkYKOsHIM0K7b0Fj6dONwkhfnpjbjoaaKENDdOtG+Xc3o9Dz5D3/yjpSM3JPSbLZL8P+ cDGfuT4rnLwO3lS0ZKxPXs0h6OOgOtEdxilcTR+T0u6s8RZFoiTYKLx01IJppELrUcac 136EqrvjgcgxkiAOn+VqXpvQ/+l+gmZFsrdSFGi08x+iJfkkF7jz/p+aYcsr9q87WhWZ +Vs9adjcAecirGb2NpyzX0DOPjAuBpL0ABV6bPBm4TWQ4OfnMoQpCKcMfpWcAkGSx1Gd iwKw== X-Gm-Message-State: AOJu0YwzyfDfe9//ZmJbXM39Ma45cKyoNfhH02xGUvO3juy3FvwgEvyF 6GwW24y1ubMehLMBpqJvz/H9V4Aj5HC01FOTnZGq/buyYWVCRN8Qmcs09bwhxgiOCg== X-Gm-Gg: ASbGncsPJIqnxnBNJmMc0dBnuOR02vXpnd+dGmeJ2GA6aejntBk2AMyQddX9PcYlAuK 3i9wONCQrfWn8CeYx86p9JBVnAWE2Ei1W4IzXylwwsMyBqWXJbn/yw1qmLMiaDjDHH9er7kWTPm 7VbgG3F0WzYDuJEcQs0UuTikFFC+wye8FbYGEv2W+fX274gc4JB3wwG2xETmCVIlzCMLYSofMVf tIpjaET8danRh4NViioXvYO84X4IcOt2mLciDWHzknIuaDK7+EduqkoI+gTv9CEgpEuAvU= X-Received: by 2002:a17:902:e5c7:b0:215:19ae:77bf with SMTP id d9443c01a7336-219e6e9df25mr105323245ad.19.1734825924454; Sat, 21 Dec 2024 16:05:24 -0800 (PST) Received: from gnu-tgl-3.localdomain ([120.204.185.181]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca02e60sm48789915ad.273.2024.12.21.16.05.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:05:24 -0800 (PST) Received: from gnu-tgl-3.lan (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id CE4ECC0BC6; Sun, 22 Dec 2024 08:05:15 +0800 (CST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: sam@gentoo.org, Adhemerval Zanella Subject: [PATCH 38/39] malloc: Only enable -Waggressive-loop-optimizations suppression for gcc Date: Sun, 22 Dec 2024 08:05:01 +0800 Message-ID: <20241222000509.2205895-39-hjl.tools@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241222000509.2205895-1-hjl.tools@gmail.com> References: <20241222000509.2205895-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org From: Adhemerval Zanella Reviewed-by: Sam James --- malloc/tst-dynarray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/malloc/tst-dynarray.c b/malloc/tst-dynarray.c index 757add26f3..1009e27dfa 100644 --- a/malloc/tst-dynarray.c +++ b/malloc/tst-dynarray.c @@ -482,7 +482,7 @@ test_long_overflow (void) iteration would invoke undefined behavior. That loop iteration can never be executed because an allocation of this size must fail. */ - DIAG_IGNORE_NEEDS_COMMENT (12, "-Waggressive-loop-optimizations"); + DIAG_IGNORE_NEEDS_COMMENT_GCC (12, "-Waggressive-loop-optimizations"); TEST_VERIFY (!dynarray_long_resize (&dyn, (SIZE_MAX / sizeof (long)) + 1)); DIAG_POP_NEEDS_COMMENT; @@ -499,7 +499,7 @@ test_long_overflow (void) iteration would invoke undefined behavior. That loop iteration can never be executed because an allocation of this size must fail. */ - DIAG_IGNORE_NEEDS_COMMENT (12, "-Waggressive-loop-optimizations"); + DIAG_IGNORE_NEEDS_COMMENT_GCC (12, "-Waggressive-loop-optimizations"); TEST_VERIFY (!dynarray_long_noscratch_resize (&dyn, (SIZE_MAX / sizeof (long)) + 1)); DIAG_POP_NEEDS_COMMENT;