From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id dC3yGkHFRGeBWj8AWB0awg (envelope-from ) for ; Mon, 25 Nov 2024 13:43:13 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=RTMVHVT2; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 3CFE41E092; Mon, 25 Nov 2024 13:43:13 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 886231E05C for ; Mon, 25 Nov 2024 13:43:12 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 11D5B385840C for ; Mon, 25 Nov 2024 18:43:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11D5B385840C Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=RTMVHVT2 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 37CFF3858D37 for ; Mon, 25 Nov 2024 18:42:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 37CFF3858D37 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 37CFF3858D37 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=1732560156; cv=none; b=S9AV+sJ4xOz8psTkJCJZFqjwIHtEFqDlED9SSMI0LC7d5lp24/9lhAfoKRtuekTwMHjX8VvD5kV3ZZ1WeOFhSh7GJy64va2lFRZYZhrva8dNVgJMFtsHUsDLbj6OhAB3NWBvME0KSikvTu0ljbdqm5xx/A1dCiUETEvQnvdHmKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732560156; c=relaxed/simple; bh=2YeDD9WoxKSqczl3/FQW56ZnSglVnuJTIK11doGQxWM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=GaPom8fDJcN3fkdClXNao5uM5UwatH59epxerR4UZgfiICfnvAjXaHj9NNa4p2iMm1cNNWmwjtYwnIPIBGqtmmKxKHgMKMx+N37DiDzMpKPiM9nj7a99GV6nIlg4kasqEGV8AINJQzDh1yG/D5eYE+3R6TbKV1IhSzFSnOl91jg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37CFF3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732560155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PND1ZLEDz0FrvB8BmW7i6NFYWga8y84GhoSECzyBwEc=; b=RTMVHVT2tuHZMwdI1f6YTD5nTyQLXNRs4Jg7i+usB8CBMZ94v6g4nsyONymqfTCmNTxx8k gaTvb8AuxcXzHn4gk4UurAsAxmKKEfednreWY7d6h8kpCtVTjRluxWXzN+WTt9TuIAD2DJ EfwMj4MueheaZNFg3Dv0FBYcjOe8W0k= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-461-ydWa81tOMgK6Ul_7SaPmdw-1; Mon, 25 Nov 2024 13:42:34 -0500 X-MC-Unique: ydWa81tOMgK6Ul_7SaPmdw-1 X-Mimecast-MFC-AGG-ID: ydWa81tOMgK6Ul_7SaPmdw Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9D9D219560A6 for ; Mon, 25 Nov 2024 18:42:33 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.96.134.173]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2EEA9195DF81; Mon, 25 Nov 2024 18:42:31 +0000 (UTC) From: Guinevere Larsen To: gdb-patches@sourceware.org Cc: Guinevere Larsen Subject: [PATCH] gdb/testsuite: skip gdb.threads/omp-par-scope.exp with clang Date: Mon, 25 Nov 2024 15:42:25 -0300 Message-ID: <20241125184225.1021664-1-guinevere@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: xRwOT7BKKxfZR70in9jnhcy1A7hfIThF6eqwLt0aoIY_1732560153 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Since 2020 it has been reported to clang[1] that the debug information around OpenMP is insufficient. The OpenMP section is not declared within the correct scope, and instead clang marks as if the section was a function in the global scope. This causes several failures in the test gdb.threads/omp-par-scope.exp when using clang to test GDB. Since this isn't a true failure of GDB, and there is little expectation that clang will be able to fix this soon, this commit disables the aforementioned test when clang is being used. [1] https://github.com/llvm/llvm-project/issues/44236 --- gdb/testsuite/gdb.threads/omp-par-scope.exp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gdb/testsuite/gdb.threads/omp-par-scope.exp b/gdb/testsuite/gdb.threads/omp-par-scope.exp index 38c462c421f..6d68afd404a 100644 --- a/gdb/testsuite/gdb.threads/omp-par-scope.exp +++ b/gdb/testsuite/gdb.threads/omp-par-scope.exp @@ -20,6 +20,14 @@ standard_testfile +if { [test_compiler_info "clang*"] } { + # Clang doesn't add OpenMP information in the correct scope, + # so all relevant tests here will fail. See here for more info: + # https://github.com/llvm/llvm-project/issues/44236 + unsupported "Clang doesn't add required info for the test" + return +} + set have_nested_function_support 0 set opts {openmp debug} if [support_nested_function_tests] { -- 2.47.0