From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by sourceware.org (Postfix) with ESMTPS id 206E33858D34 for ; Fri, 3 Jul 2020 11:20:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 206E33858D34 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=alves.ped@gmail.com Received: by mail-wr1-f65.google.com with SMTP id a6so32245702wrm.4 for ; Fri, 03 Jul 2020 04:20:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ijd3yfCsfy1ci2UrgG42/mwrvpYYsRA55PF+PIPKwc8=; b=D0mw/XgC+lfg23VdSF2bgyw8UIX5F+x5HCafUdWQDBl4BzWFVeCRpv06Ivyke4K3Pa ypBbeE2DzAPnC6qY7pY2CSTl8vJjh8U/0MlQWy7ojCsBf7wdlPoh6WcBR+TaLPdgVKD2 IC+B0v6D6boA2unjq+H303MyGPOYvlAhn4YUnaMYfPVgpWpVCNM3EwbQ+meEIzJsVM1r CIOGi/LPl1PYjgjMaAQtrXBRligx6Jiu6ISj1yBGr5SfKKZzsf8hiLKN4vIJzqw1qCi4 BSnwnwvsspxsxVj1anlgD9imAUdQQtQEIwis0kUjn2ISvPzaiRPxO6skpL6X343TYQpj g2kw== X-Gm-Message-State: AOAM532PqMf4KIqbaH/syYCXKxvBKftSEXCQhsY7hbbPcwWwDd9e5elN RfRtKQlI+Pngl4r05qet/O04le0VywX1cQ== X-Google-Smtp-Source: ABdhPJx8QJhPrOxR9F5/k8rGy2KUVlovDxrLRP0ID3IftxJQOJd5vpUCcqju4fte2h1AJVI4q5F1gg== X-Received: by 2002:adf:a111:: with SMTP id o17mr35803416wro.257.1593775219820; Fri, 03 Jul 2020 04:20:19 -0700 (PDT) Received: from ?IPv6:2001:8a0:f922:c400:56ee:75ff:fe8d:232b? ([2001:8a0:f922:c400:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id d18sm14457750wrj.8.2020.07.03.04.20.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jul 2020 04:20:19 -0700 (PDT) Subject: Re: [committed][gdb/testsuite] Update psym-external-decl.exp for gcc-10/clang To: Gary Benson , Tom de Vries References: <20200617122432.GA28940@blade.nx> <20200618161044.GA1032@blade.nx> <21d9fcc8-62c4-d1a5-f085-0c7f26783255@suse.de> <20200619140041.GB31823@blade.nx> <6dd30362-e9dd-6bc9-bf40-8b846b926e5a@suse.de> <20200626093727.GA8682@blade.nx> <20200703092107.GA8482@blade.nx> Cc: gdb-patches@sourceware.org From: Pedro Alves Message-ID: Date: Fri, 3 Jul 2020 12:20:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20200703092107.GA8482@blade.nx> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.7 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: Fri, 03 Jul 2020 11:20:23 -0000 On 7/3/20 10:21 AM, Gary Benson wrote: > Tom de Vries wrote: >> On 6/29/20 2:32 PM, Pedro Alves wrote: >>> I would suggest filing a bug with clang, to confirm whether >>> this is intentional, or whether they see it as a bug. I would >>> think it is a bug, but I'm not sure. If indeed a bug, we would >>> XFAIL the test. >> >> I've filed https://bugs.llvm.org/show_bug.cgi?id=46514 . >> >> Thanks, >> - Tom > > Thank for filing it Tom. So the conclusion seems to be that the testcase should be using -fstandalone-debug? Except, I tried it here, and it doesn't seem to work: ~~~~~~~~~~~~~~~~ >From 792aa03ab3325fe7cfcfeb51e765e81da2fbbfaf Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 3 Jul 2020 12:12:19 +0100 Subject: [PATCH] standalone --- gdb/testsuite/gdb.base/psym-external-decl.exp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.base/psym-external-decl.exp b/gdb/testsuite/gdb.base/psym-external-decl.exp index d0388d5655e..faff3234bb5 100644 --- a/gdb/testsuite/gdb.base/psym-external-decl.exp +++ b/gdb/testsuite/gdb.base/psym-external-decl.exp @@ -15,17 +15,18 @@ standard_testfile .c psym-external-decl-2.c +set srcfiles [list $srcfile $srcfile2] +set options {debug} + get_compiler_info if { [test_compiler_info "clang-*"] } { - return -1 + lappend options additional_flags=-fstandalone-debug } -set srcfiles [list $srcfile $srcfile2] - if { [build_executable_from_specs \ "failed to prepare" \ $testfile [list] \ - $srcfile [list debug] \ + $srcfile $options \ $srcfile2 [list]] == -1 } { return -1 } base-commit: c2ecccb33c307faa21f4d2f47348e7346b032d94 -- 2.14.5 ~~~~~~~~~~~~~~~~ I still get: $ readelf -w testsuite/outputs/gdb.base/psym-external-decl/psym-external-decl0.o | grep aaa $ This is Clang 5.0.2. Maybe it works with newer Clangs? What do you get?