From patchwork Fri Apr 19 21:54:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 88780 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5B0093849AF7 for ; Fri, 19 Apr 2024 21:54:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id D4F683849ACF for ; Fri, 19 Apr 2024 21:54:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D4F683849ACF Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D4F683849ACF Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713563659; cv=none; b=EX8KrUrMKRGTkjZ5Gm/0SqbnfhKQoQG+K8LSTVr72ITkHsbA0bkXE/hB/aGF6vaA98qwUQ94CswWJGvsE2GIW1IBuXRltCyG5hYNw4esuTYGKrvE88ABl8LSwIVBqLnqbLglmvwJT2Sy/kX4ai5SscEUQkn7DyDOx75S5LDyXdk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713563659; c=relaxed/simple; bh=QVpWd8c9cnHAn8SBXatEFuo2oFgIU7fbpGTCe3YMKus=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ktNG66oO2n3gv3M79lUvbgzaz11fKCchXPfq/DXHIWgIM1OFFmirxMzGDpduFUGzLti8GvH9kJ1FbKgWsIYm2nx56BpTvG6S5uOoxgURhMbhk/3RW2JAmbO8fSS4BM9jK09cz40jMrn8dFtWaj6X+iR0oe0/IrnziBDE+AzPiYg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713563657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9a6TcpzssnLz2d4fM/kQltT2sj8RUiMmFtPg4I+3ML4=; b=bE8iI2KfHuOi2WWlVzQMNI9DaZi58722S1wr6/T9WMHdVPSN+fgOLfoPRJAcO1BnmmAZ72 zUaMCOWmgEApOQQGlP8ccdB5FEZO3qTX08wEQLKU19CO4vLxlylw6l1c2ZlE1C8wc5UHpY IR6fz/L0uOwO4XXnJCMrmxNNcFXR8yE= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-9-BvHfVI63MbKPEUh28zS4jw-1; Fri, 19 Apr 2024 17:54:16 -0400 X-MC-Unique: BvHfVI63MbKPEUh28zS4jw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C05771C3F102 for ; Fri, 19 Apr 2024 21:54:15 +0000 (UTC) Received: from pdp-11.lan (unknown [10.22.10.62]) by smtp.corp.redhat.com (Postfix) with ESMTP id A8A0B200E1AE for ; Fri, 19 Apr 2024 21:54:15 +0000 (UTC) From: Marek Polacek To: GCC Patches Subject: [PATCH] testsuite: prune -freport-bug output Date: Fri, 19 Apr 2024 17:54:11 -0400 Message-ID: <20240419215411.52301-1-polacek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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+patchwork=sourceware.org@gcc.gnu.org Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? I can defer to 15 if needed, of course. -- >8 -- When the compiler defaults to -freport-bug, a few dg-ice tests fail with: Excess errors: Preprocessed source stored into /tmp/cc6hldZ0.out file, please attach this to your bugreport. We could add -fno-report-bug to those tests. But it seems to me that a better fix would be to prune the "Preprocessed source stored..." message in prune_gcc_output. gcc/testsuite/ChangeLog: * lib/prune.exp (prune_gcc_output): Also prune -freport-bug output. --- gcc/testsuite/lib/prune.exp | 1 + 1 file changed, 1 insertion(+) base-commit: d86472a6f041ccf3d1be0cf6bb15d1e0ad8f6dbe diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index f3d3c99fbcb..d00d37f015f 100644 --- a/gcc/testsuite/lib/prune.exp +++ b/gcc/testsuite/lib/prune.exp @@ -51,6 +51,7 @@ proc prune_gcc_output { text } { regsub -all "(^|\n)\[^\n\]*: re(compiling|linking)\[^\n\]*" $text "" text regsub -all "(^|\n)Please submit.*instructions\[^\n\]*" $text "" text regsub -all "(^|\n)\[0-9\]\[0-9\]* errors\." $text "" text + regsub -all "(^|\n)Preprocessed.*bugreport\[^\n\]*" $text "" text # Diagnostic inclusion stack regsub -all "(^|\n)(In file)?\[ \]+included from \[^\n\]*" $text "" text