From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by sourceware.org (Postfix) with ESMTP id 42EC2384B104 for ; Mon, 20 Apr 2020 14:49:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 42EC2384B104 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-462-U54xD_UvPVy3WBmtqVcxlQ-1; Mon, 20 Apr 2020 10:49:52 -0400 X-MC-Unique: U54xD_UvPVy3WBmtqVcxlQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 17B5818FF672 for ; Mon, 20 Apr 2020 14:49:52 +0000 (UTC) Received: from blade.nx (ovpn-115-177.ams2.redhat.com [10.36.115.177]) by smtp.corp.redhat.com (Postfix) with ESMTP id DA42A5C1BB for ; Mon, 20 Apr 2020 14:49:51 +0000 (UTC) Received: from blade.com (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id F1BFB816CCA9 for ; Mon, 20 Apr 2020 15:49:50 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [OB PATCH] Disable nested function tests for clang Date: Mon, 20 Apr 2020 15:49:49 +0100 Message-Id: <1587394189-13374-1-git-send-email-gbenson@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-27.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Mon, 20 Apr 2020 14:49:56 -0000 Clang does not support nested functions, and there are no plans to change this. This commit disables the three nested function tests when using clang. gdb/testsuite/ChangeLog: =09* gdb.base/nested-subp1.exp: Disable test when using clang. =09* gdb.base/nested-subp2.exp: Likewise. =09* gdb.base/nested-subp3.exp: Likewise. --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/gdb.base/nested-subp1.exp | 6 ++++++ gdb/testsuite/gdb.base/nested-subp2.exp | 6 ++++++ gdb/testsuite/gdb.base/nested-subp3.exp | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/gdb/testsuite/gdb.base/nested-subp1.exp b/gdb/testsuite/gdb.ba= se/nested-subp1.exp index c733af5..3d46325 100644 --- a/gdb/testsuite/gdb.base/nested-subp1.exp +++ b/gdb/testsuite/gdb.base/nested-subp1.exp @@ -24,6 +24,12 @@ standard_testfile =20 set testcase "nested-subp1" =20 +get_compiler_info +if { [test_compiler_info "clang-*"] } { + untested "compiler does not support nested functions" + return -1 +} + if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \ [standard_output_file "${testcase}"] \ executable \ diff --git a/gdb/testsuite/gdb.base/nested-subp2.exp b/gdb/testsuite/gdb.ba= se/nested-subp2.exp index cd041ec..6976f33 100644 --- a/gdb/testsuite/gdb.base/nested-subp2.exp +++ b/gdb/testsuite/gdb.base/nested-subp2.exp @@ -24,6 +24,12 @@ standard_testfile =20 set testcase "nested-subp2" =20 +get_compiler_info +if { [test_compiler_info "clang-*"] } { + untested "compiler does not support nested functions" + return -1 +} + if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \ [standard_output_file "${testcase}"] \ executable \ diff --git a/gdb/testsuite/gdb.base/nested-subp3.exp b/gdb/testsuite/gdb.ba= se/nested-subp3.exp index 5d2e1ec..37bbfca 100644 --- a/gdb/testsuite/gdb.base/nested-subp3.exp +++ b/gdb/testsuite/gdb.base/nested-subp3.exp @@ -24,6 +24,12 @@ standard_testfile =20 set testcase "nested-subp3" =20 +get_compiler_info +if { [test_compiler_info "clang-*"] } { + untested "compiler does not support nested functions" + return -1 +} + if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \ [standard_output_file "${testcase}"] \ executable \ --=20 1.8.3.1