From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oMQqLzL94GL4TxsAWB0awg (envelope-from ) for ; Wed, 27 Jul 2022 04:54:10 -0400 Received: by simark.ca (Postfix, from userid 112) id BE5F31E9ED; Wed, 27 Jul 2022 04:54:10 -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=ZN3MvawO; 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 71E7E1E87E for ; Wed, 27 Jul 2022 04:54:10 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1E365385702D for ; Wed, 27 Jul 2022 08:54:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E365385702D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1658912050; 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:Cc: From; b=ZN3MvawO89QhQ4P75VnIP4hBhIrZlJ19Vfm9GNP6UNvu1aoKAZspSMi/5+wwRv+7Z Tw9TA5zJ8VOOVq9CvomDG2PYMZYV2yT5UGuLdeuNJk3s9kMxX2+yK8WLUQ/NR6s5f1 QuXWK/7SCL89rg0QWIGvYkCtu++Isg6U1evUj47s= Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by sourceware.org (Postfix) with ESMTPS id 193693857012 for ; Wed, 27 Jul 2022 08:53:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 193693857012 X-IronPort-AV: E=McAfee;i="6400,9594,10420"; a="288192962" X-IronPort-AV: E=Sophos;i="5.93,195,1654585200"; d="scan'208";a="288192962" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 01:53:48 -0700 X-IronPort-AV: E=Sophos;i="5.93,195,1654585200"; d="scan'208";a="742576696" Received: from mulvlfelix.iul.intel.com (HELO localhost) ([172.28.48.92]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 01:53:47 -0700 To: gdb-patches@sourceware.org Subject: [PATCH v3 1/2] gdb, testsuite: Enable testcases that suppress specific warnings, for icc/icx. Date: Wed, 27 Jul 2022 10:51:27 +0200 Message-Id: <20220727085128.2404513-2-felix.willgerodt@intel.com> X-Mailer: git-send-email 2.34.3 In-Reply-To: <20220727085128.2404513-1-felix.willgerodt@intel.com> References: <20220727085128.2404513-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 Cc: aburgess@redhat.com 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