From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AJTzBEiB3mIIOxoAWB0awg (envelope-from ) for ; Mon, 25 Jul 2022 07:40:56 -0400 Received: by simark.ca (Postfix, from userid 112) id 10EFF1E9E9; Mon, 25 Jul 2022 07:40:56 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=pLTpADKv; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (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 simark.ca (Postfix) with ESMTPS id A1FAB1E227 for ; Mon, 25 Jul 2022 07:40:55 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 53E39383F958 for ; Mon, 25 Jul 2022 11:40:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 53E39383F958 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1658749255; bh=fj9znJOpigfmdWsdYt2NzsMD5Cbhe9uDX+B93I0Ta0Q=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=pLTpADKvdQELj2c5qLpnY+xLKTQ4r5IaG6sRvxKsv6CWLsfkPzRoQvrPWwDIx3OH8 SM/oLm1engwgtt2gdNknzkt9kX7cgGd9tzwyBnv8h3ET9c8IP7Xw5e52FzNmirt+1p Fuvo8JKUZZynWy25wFnCType0fsJcodaEBVQY9o4= Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by sourceware.org (Postfix) with ESMTPS id 3FF03383F958 for ; Mon, 25 Jul 2022 11:40:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3FF03383F958 X-IronPort-AV: E=McAfee;i="6400,9594,10418"; a="287688919" X-IronPort-AV: E=Sophos;i="5.93,192,1654585200"; d="scan'208";a="287688919" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2022 04:40:34 -0700 X-IronPort-AV: E=Sophos;i="5.93,192,1654585200"; d="scan'208";a="658156283" Received: from mulvlfelix.iul.intel.com (HELO localhost) ([172.28.48.92]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2022 04:40:34 -0700 To: gdb-patches@sourceware.org Subject: [PATCH v2 1/2] gdb, testsuite: Enable testcases that suppress specific warnings, for icc/icx. Date: Mon, 25 Jul 2022 13:38:21 +0200 Message-Id: <20220725113822.1855437-2-felix.willgerodt@intel.com> X-Mailer: git-send-email 2.34.3 In-Reply-To: <20220725113822.1855437-1-felix.willgerodt@intel.com> References: <20220725113822.1855437-1-felix.willgerodt@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Felix Willgerodt via Gdb-patches Reply-To: Felix Willgerodt Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" To cite gdb.exp: Some C/C++ testcases unconditionally pass -Wno-foo as additional options to disable some warning. That is OK with GCC, because by design, GCC accepts any -Wno-foo option, even if it doesn't support -Wfoo. Clang however warns about unknown -Wno-foo by default, unless you pass -Wno-unknown-warning-option as well. We do that here, so that individual testcases don't have to worry about it. This patch adds the same option that already exists for clang for icx and adds the equivalent icc option. --- gdb/testsuite/lib/gdb.exp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index a8f25b5f0dd..1d4ac75016e 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -4484,9 +4484,13 @@ proc gdb_compile {source dest type options} { && [lsearch -exact $options rust] == -1 && [lsearch -exact $options ada] == -1 && [lsearch -exact $options f90] == -1 - && [lsearch -exact $options go] == -1 - && [test_compiler_info "clang-*"]} { - lappend new_options "additional_flags=-Wno-unknown-warning-option" + && [lsearch -exact $options go] == -1} { + if {[test_compiler_info "clang-*"] || [test_compiler_info "icx-*"]} { + lappend new_options "additional_flags=-Wno-unknown-warning-option" + } elseif {[test_compiler_info "icc-*"]} { + # This is the equivalent for the icc compiler. + lappend new_options "additional_flags=-diag-disable=10148" + } } # Treating .c input files as C++ is deprecated in Clang, so -- 2.34.3 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928