From patchwork Sun Dec 22 00:04:44 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: 852892 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp2771025wrq; Sat, 21 Dec 2024 16:19:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWVA2z4XAEv0+qQaSDG8bLuwXL4IQIXVIw+JnVnqUfvcGnPWvuBSxoP32PSV+TnWD4ETWyQpw==@linaro.org X-Google-Smtp-Source: AGHT+IEPOpcpMFvNWQYGMoU2qvz7T8rM8BpdCv4df9wCFGP3o/Toz7nekVbb5Cud9H4yqc3Lv/Ds X-Received: by 2002:a05:620a:4714:b0:7b6:f219:a7a8 with SMTP id af79cd13be357-7b9ba805896mr1238669085a.49.1734826799140; Sat, 21 Dec 2024 16:19:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734826799; cv=pass; d=google.com; s=arc-20240605; b=SXC43CObR2g7h60xh23zL0gCTTSUbq9CzP7137/bEzLwjSy8ZbvYDkBHhdDsAXhkcg WkbZIwP46/7eYINQ8gd4qgDt8ixCdQO1fA2M6OJlxu81SE08AzgmsSnymZ4moz8Ese47 8GT5t5/H8p3egzWjeEBrMgsQlv4HQv45UhaL/4iu9LnMceUnEyJDAOg8ac/6scPqeKTR 2TY7MW2q6CwzP5tVy6/9/UM3314YhhnQb3Cshcw9mKmvPrxjgg/PiHVBAyj2PvMz8OsX Vq1Vt5nN46asKYkUieTZQJC/yTzGxpe+Yx6eFGIR0fEpmGVcwgiTYBylTbhBoBzWzKOV 5KxQ== 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:dkim-filter; bh=7hkiHbiTQ4lM9EUQHOQuFxAL3gJfkAI5pNhjI9X7FiQ=; fh=uKlFkH9AUukvL1xmvBA9M7Oe4ntiJIR8HCR4+3TPd4w=; b=kJwicyIZDJgTrtO76X/Kz1MoLE+C5hndUzb+aydfl1GHC3sm0H5nW1pbA8Bug5PBDw FsfDx2inNKdyQcG9Mh4FdN1uqL6We32Z698CPvVHX1JQMCZeOWSOEAiLjSTSSybuoVKC FfsemB5S30XEp6wOxJ/FR670hcHBv3PPPRWkEadPMiW4edRSzWmbBGKC8y/PKuufGUUJ KOoJOkrrD/+FlCr85qr3bYQqIjoQJNKlqpHUh/NH8uUaRaKEBJgkAYb79d3OAbBXL5U5 P8zxVDLMT/OMA3nF9CArF49KujlKux3zopvi4itCO06hdcrs53AL9OYJUzz0Yt2sYr/C oQmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mFbOPF3m; 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 af79cd13be357-7b9ac478f2csi756595985a.331.2024.12.21.16.19.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:19:59 -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=mFbOPF3m; 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 B16A73858D3C for ; Sun, 22 Dec 2024 00:19:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B16A73858D3C 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=mFbOPF3m X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by sourceware.org (Postfix) with ESMTPS id 87CEF3858283 for ; Sun, 22 Dec 2024 00:05:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 87CEF3858283 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 87CEF3858283 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825931; cv=none; b=Hu8GvhvUjIEvLsdNfpyPKOMlE2HcIxM7c5RuNR51sZ5KTJT/zdC9lq1avk+kSUGS6PZG5V3yJ82FfhiB/PIc9NEGzlR3VfOD6FKFe/L7Jg0ooDlGbNk0AmW0+y2fJe14EUXlIsVobjPaPGwvOUc5/mdmyXdh1J9cZ6zs87c2Egs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825931; c=relaxed/simple; bh=+Qlj/x87CpzlqQ9MWyweevsLNy9Mk2lyRYTTVYX4tVo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rLZUdiD6Qpsab5nEILBYqVoivNI2IbAFY3yityIvZMOd6s96446juWnw0tMx+b2ci6yuie4ivhWezaZ6pU/UL7NarV6RSFKtd+yS7I4LAlNPkaDTA24TgEFIMY06Aedda7t5o8liRrQys6tx7/vqOpqkSDWbHzECk1RLBeba9hA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 87CEF3858283 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2ef87d24c2dso2476980a91.1 for ; Sat, 21 Dec 2024 16:05:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734825925; x=1735430725; 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=7hkiHbiTQ4lM9EUQHOQuFxAL3gJfkAI5pNhjI9X7FiQ=; b=mFbOPF3muLM5mzfw7vHsPD6sVcwmrNxw8mvMCNOxgtQkTc3vCvj94L1PfQoQX7dt4N 4WKJzkkRaSfEE1yhOJHU0TJKEayVrp1vEGqIu7WSVyA4Jr3EemQC1cQekXQ8FkI4htq+ r1F9o/rpRVtizEODfW7mwmV/4AhCaLTZ58/5dVPq9Py3LE+ttrCwemjk0ZERLAAKKYV2 OmLYDUCzUobEn8I/7xrM36pfQYlNu2D9hj6tr46IUsObdIqc9+HI7PQKqsmQgCKwPBzB GPht4ASrzxGw6BYZiUFVWmmSh3Cg+4m7A9dMItUIRgERtRQLqPARaqXF8fZrinWRw6N4 p+IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734825925; x=1735430725; 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=7hkiHbiTQ4lM9EUQHOQuFxAL3gJfkAI5pNhjI9X7FiQ=; b=bKvOSEYSa0f0kOKUVfO7/MN02jYuqY5zImVI0qKOW5ibp/pbEsro693cLd3XQtcEh4 L/cgjY7NR53uLL+VAVdvucuTg7uD6sV3bT3NLk/AM/rioFZ7IQOV6S9a4ERSRy4rC+G8 aX9JgTGUmdBJHJXOECR8FR///CYifki4C36ljryy1cC1o4YoWXTXfASibrQZxbNg0r9Q Tbq/cyDnRip3BK94n0JT7FRxQjc1o9jdf/+addQXYFL5YBM1Jj9TuILsk3jVN6Qf2PwJ 8GINpm8tenKaxpupAJvL34LLDf+bs1JpOfvg/NKMifgPtg4V+P6kL7/n2wimwefvLCrk ecpg== X-Gm-Message-State: AOJu0YyuS1GBm/PFTDJVYK36cl47I1HBxQGePaVSgcJqtwgUiZM0A57a qNTUqFydwGUsWSO3ZYzriKY8ctODBKhLqU0fWEuqnt/PSkkb08r3 X-Gm-Gg: ASbGnctwT51deNxVTjaoVcBGqA38v+BFc8jYJbabKyN+7Ml5WamX7JTsANdcm/QA+Ag EPJpTTHIfauoznRFyV2r5sjpgQWy6IaNVwhiVZj65fQPJ/vV4jtzt9WDj7riLF+bwoSAL1q+Kho 6nPkOq6vRQ9i+DDEmv6zb8+32Lnesjl3wjW6PohIXIOE50W538zwOjShJxEfEIwkqnd9Ic/7Aj4 IfHUtNv7Ik+9Y06xxeHoJIwyx5vfJC6ZhUMeGaV2argLoVY+jxuqgnrSlnmnzxFe1m0/qk= X-Received: by 2002:a17:90b:538e:b0:2ee:fc08:1bc1 with SMTP id 98e67ed59e1d1-2f452eeb5aemr12172536a91.37.1734825925568; Sat, 21 Dec 2024 16:05:25 -0800 (PST) Received: from gnu-tgl-3.localdomain ([120.204.185.181]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f2ed644d87sm8257557a91.27.2024.12.21.16.05.22 (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 18F83C0837; 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 21/39] debug: Avoid clang optimize away required function on tst-ssp1.c Date: Sun, 22 Dec 2024 08:04:44 +0800 Message-ID: <20241222000509.2205895-22-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 --- debug/tst-ssp-1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debug/tst-ssp-1.c b/debug/tst-ssp-1.c index 27f10edc56..671e9a5007 100644 --- a/debug/tst-ssp-1.c +++ b/debug/tst-ssp-1.c @@ -22,6 +22,10 @@ static void __attribute__ ((noinline)) __attribute_noclone__ +#ifdef __clang__ +/* Avoid clang optimize it away. */ +__attribute__ ((optnone)) +#endif test (char *foo) { int i;