From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by sourceware.org (Postfix) with ESMTPS id 63E793858D1E for ; Fri, 10 Nov 2023 06:02:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 63E793858D1E 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 63E793858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::d2a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699596145; cv=none; b=Ma1kxxulA4EVFuLZPwCNOvTHZSsuAKfooFBV3+pgQR6KS+EdYV43TyVcod6EIqapqZ9Tvtx6yFd5Qp8MckpBnmqusxOaTx2kKcfvq1hYTGgi+S4ihyIgUIf6qwmGina5bKMpSTp9KM21bG4REQ4ieIQWMwUiVxBEmUrlBnNpJuo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699596145; c=relaxed/simple; bh=cEwoJtfp6zmAnXW/VsbnLBZE+Js0hRaJXaHmVZWmff0=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=QtUUmcaN8TqEKdV3tZA2JRNsODU62UM9Og9ELE/LWqCqNtSjw/+CWd6InIVz0R/I+Fcpxa/FMs+0mV9srHPI6B5z/WzyhSSmMPZJXPpzQMaKQ1ew0Ka07Gwf7sjo+oW3sy095VaDy8Ja4ixyKz7PiMLRU5oOdo+57usrMWcFgVQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-7a69a71cc1dso63140139f.0 for ; Thu, 09 Nov 2023 22:02:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699596143; x=1700200943; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Unm5128yY2ZZ+rS2i/pOHO2m5czD/5l0DCfPFG1vxsM=; b=Z6Ls22kbMS7r6fCAG9KYRRmT4Eusp13BAFuq8Wy7eqTVhYvxSBEA1bI3/EhFRki9nj iZ9xUy8T36kK56w6zArlDDZ8f3c0yZ9wKPyVSJImb53mV/Ex/Z9+znSp1FlIhfo/B5+w BoFjYNpF87WwHSYURxfeduyoQKQQq7mSEED1waSxvx6GVOPQlcMPkJp0BWuURtKnsSAx yn47xT3I/XcD4TOTEgLfCvtsDder/i/7ARr4TGfr1ZleCSnOPKmkbqlM7WI3SLdVOyNF RzEvX2TFBCwjzSkfWvuCHsgbQ0oHofllD4FXMSGoaaKi/3JowP0SLdNJGcVItaZb0mwY vjOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699596143; x=1700200943; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Unm5128yY2ZZ+rS2i/pOHO2m5czD/5l0DCfPFG1vxsM=; b=WdEeg6gFaPN6dNglDzP80MY3C6ECijPvfuYo8Kg1q4+lctOKJTa4SZrmaFBAGweX85 7qJ95nCA90X8JNkbEYgGEZDo9w3RLbQH1IomVBfluVYvNLkEZMxEHbeNkt5FTcww0+7U 8Jjx6jqndKcwQvxrNtXPAKCs/JZ6OqMIMBPC/ebvaMh2ZAPTxmmjuLMeUfX6MDO+yWwc KGZ2QDd4pXAAwN7DT292wx+5WgwADQAGQs7SbHZDWl8Uv6qYQArFSBR+jA6iH2OPigCl zypNtjvjv8LSkUxUBVkckpcUhvypT2jTMYR6kTxh663HfyiU029K7qgKKZ5YaTO47Vn6 RmDg== X-Gm-Message-State: AOJu0Yzmh4PPnipd78Qe4sLEbHe4uxODJNKNJ9h2AujKrHe5jlrHypx+ PHIHjxGn95FMe245LqALfHs= X-Google-Smtp-Source: AGHT+IHpfcHvDEBkAyQZxnw7igl9rnHl0c4tpl3yr33kQks5RQ+KPcZqt4/43jHYdJd9WklEhZNG/A== X-Received: by 2002:a05:6602:480a:b0:792:6963:df3b with SMTP id ed10-20020a056602480a00b007926963df3bmr6155682iob.14.1699596143421; Thu, 09 Nov 2023 22:02:23 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id h25-20020a056638063900b00450d227102csm4360183jar.9.2023.11.09.22.02.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Nov 2023 22:02:22 -0800 (PST) Message-ID: Date: Thu, 9 Nov 2023 23:02:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: RFA: make scan-assembler* ignore LTO sections (Was: Re: committed [RISC-V]: Harden test scan patterns) Content-Language: en-US To: Joern Rennecke Cc: Vineet Gupta , GCC Patches References: <2501e6a4-6f02-429f-8497-226a6b22403c@gmail.com> From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 List-Id: On 11/8/23 09:00, Joern Rennecke wrote: > On Fri, 29 Sept 2023 at 14:54, Jeff Law wrote: >> ... Joern can you post a follow-up manual twiddle so >> that other ports can follow your example and avoid this problem? >> >> THanks, >> >> jeff > The attached patch makes the scan-assembler* directives ignore the LTO > sections. > > Regression tested (using QEMU) for > riscv-sim > riscv-sim/-march=rv32gcv_zfh/-mabi=ilp32d/-ftree-vectorize/--param=riscv-autovec-preference=scalable > riscv-sim/-march=rv32imac/-mabi=ilp32 > riscv-sim/-march=rv64gcv_zfh_zvfh_zba_zbb_zbc_zicond_zicboz_zawrs/-mabi=lp64d/-ftree-vectorize/--param=riscv-autovec-preference=scalable > riscv-sim/-march=rv64imac/-mabi=lp64 > > > scanasm-diff-5.txt > > 2023-11-08 Joern Rennecke > > gcc/testsuite/ > * lib/scanasm.exp (scan-assembler-times): Disregard LTO sections. > (scan-assembler-dem, scan-assembler-dem-not): Likewise. > (dg-scan): Likewise, if name starts with scan-assembler. > (scan-raw-assembler): New proc. > * gcc.dg/pr61868.c: Use scan-raw-assembler. > * gcc.dg/scantest-lto.c: New test. > gcc/ > * doc/sourcebuild.texi (Scan the assembly output): Document change. Looks reasonable to me. OK for the trunk. jeff