From patchwork Mon Jan 15 19:18:41 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: 188317 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp1901056dyc; Mon, 15 Jan 2024 11:19:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1Fsg7dMpTYfvz5pq7YC+NBz+dwEepKMDuzUnXV0b6bIZhTssSPg9S8+iXiN9FhB4sPxX7 X-Received: by 2002:a0c:f346:0:b0:681:63b8:eb55 with SMTP id e6-20020a0cf346000000b0068163b8eb55mr883595qvm.89.1705346374102; Mon, 15 Jan 2024 11:19:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705346374; cv=pass; d=google.com; s=arc-20160816; b=zR7CAC67hNLnyJm9mSBEUq6QfRjfghp8zo51sP+hwxLzH6UGGNk2kXN2ShrpBlWPhN oO4aGLlVz3/qcV9GIAgpUHT2ns9cIPm9GuEo4K5uMGd1zF4L1bpCVkPs+LCdbqNb5Yj3 jQ5HWlTZ9uH5eaAwSz75BXwTcR1PGaIaafI5hvrsat5bur0G3fpjU9Y8EwRTM4cyj/50 Msl4myqImfsFS/0cwQL+lPGZqa2dHezy/1BmKngjL3gY7d33WuXLJSTWo/gzZulL+2sk ba08KxAD5oCgp6LXAxaCp34rYJS+JOBrmwjHtuDQPF6RpLaXKEkVMT4NCGdP+k8cBPnv RSrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=ooVdleI7sEFEOY+xQDWyV2s19QnqGpcaqtNniCwgdiQ=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=pM6RDo3cu3ErGDjQDDPi2m/I8d6e8DoMJWQAh/N6E3NCo6dWlFP89hll+APWbOR/Vq hmjBcsgfcNnc9T0AisebTLKYaYIY2BmXq6Cm1HsEmCJRcnZOv+rJL1/XVSrBTTzQlieq 0Wk5cnezxC9HVQBuUIPPLInoN5vinURiFdvYJLpYaHxmw2Wjjheqjk5rL+jiPTyJ3bQz QXZ2sAugrCttNku/anCkK+IrJ+DN/fUgdPsANtB7mxUlR+eWjj19jc+MmRsEfbrfzzCA wtVIrbBl3J9r4K68oujY+C1ToceieXIlH8tar+3Zqj4ztoNA5XPDZaL3ZQv4pvUkyXbr IDHw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TcGAGAKT; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id a10-20020a0cca8a000000b0067fc51967afsi8520916qvk.483.2024.01.15.11.19.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 11:19:34 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.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=TcGAGAKT; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.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 CA8FE3857BB2 for ; Mon, 15 Jan 2024 19:19:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by sourceware.org (Postfix) with ESMTPS id 311B83858C33 for ; Mon, 15 Jan 2024 19:18:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 311B83858C33 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 311B83858C33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::52d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705346327; cv=none; b=DMdOmRFRioekHJOOdctAJCLBOgT4KjS698jMEq334GUBFVmZzgzriKmefghwsy9Gtx81Udwts7PWmtepfP3ItVMY83HSlwhB85GPDmHSA56tk9/m4Hfo44sXjkTtBtE4AbzUED48UvDmUcHwfV6jAmqbfTAeRw0fKYAoSGYzsSI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705346327; c=relaxed/simple; bh=VaewhKD5KL3UeplfMH/KBYeMlDd8Xmd0yrlchAwoaok=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=GsvTzNRa1Nv2aCXL1z4P46sDU4+C+iz9Pk/AbdytTK6YdIP0Yx1McTOltq7v2MPt5O8qwpKF8jdtXvkGbRbA5vgXRIu94WVMMjdxwOCz0BNo5DYxdP5NUuOCPlVvT0A3Xka1t9sYxPcwukR7CiOwgKroOMFsLWY46Y2lITugZXc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-5cd8667c59eso6057697a12.2 for ; Mon, 15 Jan 2024 11:18:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705346324; x=1705951124; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ooVdleI7sEFEOY+xQDWyV2s19QnqGpcaqtNniCwgdiQ=; b=TcGAGAKTXenWoTtMpNuwKPnFXqq4lnVLjOWQsjnw0e4m17pv/Gagoc6+sR5559nrwZ OIr2s7nG7Sxa67tIHTOb9ISKGYRYzggbJ+yIOYrMdakmnSJIvWV5nYUaK8QJwAMYFEjD 5O2FYheEoPil/AksSSdBFAkrcF8VX1FkvoG1H9T2rIoHEiexC2YBSzVidj4czNEsgJmJ 7njl4idJjXxCAOhvixhnG9x6MBVC7imVn1lgNCW0iSs8zNuZd2QjXymn7Cb4+GSRBvdK dlfrGiSmuv4Euvi2beS1QWP1qe16Qn4DYJEMDvbDLxcTseDp/zsleeHubA475nUY1d/a V/eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705346324; x=1705951124; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ooVdleI7sEFEOY+xQDWyV2s19QnqGpcaqtNniCwgdiQ=; b=X2BVf6AteizTCUoPxILbZ3NoKfXLPQhRG015LSbJeH4NU3oy6He3HvSXMmkgK3VHnz w348doJKDMWrX/n/IlkURz4/umqz2MA/DUlBt4Jaj+YCGB+YYB+pUFCWIUl+7vv5GmSc EcUW1K7426ab/fKzczwG2Qq4ytOL/xBPMumvXDTgxrwZ90Fz2GglAVMRWQXpsniOBS93 FsWmkicsmpkdmkkBKplaiynx6DFHpXd/S9vundqiUQbS7giDygXXSjbr614vIY5CIxie vYd8DKRoaIDtlX4sWYJELp+kP3uwDgmV/QwdAjF7A64DfLqFtq0+sC76kIl3lNgJazV3 XbyA== X-Gm-Message-State: AOJu0YxhSadZTEn1rtgvWauUtHMy4UqGO46ByuTJeHc6TqMTb2khelCe wcsqdwL+aWFaLXmm1Rcf62a43WN3TzE= X-Received: by 2002:a05:6a21:196:b0:199:9d92:f307 with SMTP id le22-20020a056a21019600b001999d92f307mr6848851pzb.94.1705346323606; Mon, 15 Jan 2024 11:18:43 -0800 (PST) Received: from gnu-cfl-3.localdomain ([172.56.168.9]) by smtp.gmail.com with ESMTPSA id o18-20020a637e52000000b005b9083b81f0sm8572000pgn.36.2024.01.15.11.18.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 11:18:43 -0800 (PST) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 8E2A77400A2 for ; Mon, 15 Jan 2024 11:18:41 -0800 (PST) From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: [PATCH] Remove --save-temps from some compile tests Date: Mon, 15 Jan 2024 11:18:41 -0800 Message-ID: <20240115191841.1208268-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3024.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788185279209739307 X-GMAIL-MSGID: 1788185279209739307 --save-temps is needed to scan assembly outputs for assemble, link and run tests. Not all compile tests need --save-temps unless they used to trigger GCC bugs. Run --save-temps from compile tests if not needed. PR testsuite/113369 * g++.dg/abi/ref-temp1.C: Remove --save-temps. * g++.target/i386/bfloat_cpp_typecheck.C: Likewise. * gcc.dg/debug/dwarf2/pr111080.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-1.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-2.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-3.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-4.c: Likewise. --- gcc/testsuite/g++.dg/abi/ref-temp1.C | 1 - gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C | 2 +- gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c | 2 +- gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c | 2 +- gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c | 2 +- gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c | 2 +- gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c | 2 +- 7 files changed, 6 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/g++.dg/abi/ref-temp1.C b/gcc/testsuite/g++.dg/abi/ref-temp1.C index c9963ca62f9..70c9a7a431c 100644 --- a/gcc/testsuite/g++.dg/abi/ref-temp1.C +++ b/gcc/testsuite/g++.dg/abi/ref-temp1.C @@ -1,7 +1,6 @@ // From ABI document // { dg-do compile { target c++14 } } // { dg-skip-if "No .weak" { { hppa*-*-hpux* } && { ! lp64 } } } -// { dg-additional-options --save-temps } struct A { const int (&x)[3]; }; struct B { const A (&x)[2]; }; diff --git a/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C b/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C index 256712937d4..3a725f59a6d 100644 --- a/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C +++ b/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-msse2 -O3 --save-temps" } */ +/* { dg-options "-msse2 -O3" } */ void foo (void) { diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c index 3949d7e7c64..617e5e45f9b 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-save-temps -gdwarf-3 -dA" } */ +/* { dg-options "-gdwarf-3 -dA" } */ struct foo { int field_number_1; diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c index 3dc8e6719bb..0777c1f3ad8 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-save-temps -gdwarf -dA" } */ +/* { dg-options "-gdwarf -dA" } */ typedef struct _Harry { int dummy; } Harry_t; Harry_t harry; diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c index abc1dc1e6c1..932c070f162 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-save-temps -gdwarf -dA" } */ +/* { dg-options "-gdwarf -dA" } */ typedef const struct _Harry { int dummy; } Harry_t; Harry_t harry; diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c index 78234e93d65..858432aab79 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-save-temps -gdwarf -dA" } */ +/* { dg-options "-gdwarf -dA" } */ typedef struct _Harry { int dummy; } Harry_t; const Harry_t harry[5]; diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c index 89a048df4a3..57b4c5c3a13 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-save-temps -gdwarf -dA" } */ +/* { dg-options "-gdwarf -dA" } */ typedef const struct _Harry { int dummy; } Harry_t; Harry_t harry[10];