From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by sourceware.org (Postfix) with ESMTPS id 26F7F38618B8 for ; Wed, 26 Aug 2020 17:13:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 26F7F38618B8 Received: by mail-qt1-x842.google.com with SMTP id k20so1963871qtq.11 for ; Wed, 26 Aug 2020 10:13:05 -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:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Abv9r9ec48BLNt0EOenkZ688ZWDV2VksWn21K0hFITU=; b=uGXjsp9oejHbYOpcJ4Z2UgnGIE0a/xO845D14h+KqXoZuEyNRg25fBxHWEM2pg+3sJ 2lPDNGmmvr50f18qbDmtBslr6chUzPxlDi3qYG3m8M3eILAYGf2tqy9nXVEG/JcN57De iI1SdBlUBOvKY9Cfmp88gdx+3n1LGyP9UCzmueMEydPiRRecT7QTauEPaF0MZ5W2V2hp Fl+JL1430nPBjeyBEc9pxzqDWA73NQfkDU28QNwyZ1mVT4x9Qe0R2jWAtn0K1DNASxp7 v1lRrjPw47o4PyyjorB598FaWPXzO0c9KNiixghXZJdm3ADeZriBoP/zAu11f/Jwhzvf MuNQ== X-Gm-Message-State: AOAM533P+rvSML3fTzKaz4xX6uYvVFeiZZlO6S5XGkA96nD7skP7Ppsm SAuo7GdM2jPRrQT332R+JRuufIc9eoZWOg== X-Google-Smtp-Source: ABdhPJy29gGtDb6rjt3ApoqMUry/mZEP2HG2biOA6EF7WzFEVTXyfzRINGChEfFLYulPkOmnERKv8g== X-Received: by 2002:ac8:4f44:: with SMTP id i4mr2560825qtw.189.1598461984533; Wed, 26 Aug 2020 10:13:04 -0700 (PDT) Received: from ?IPv6:2804:7f0:8283:a3ee:e9bf:339b:4e41:8084? ([2804:7f0:8283:a3ee:e9bf:339b:4e41:8084]) by smtp.gmail.com with ESMTPSA id y73sm367937qkb.23.2020.08.26.10.13.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Aug 2020 10:13:03 -0700 (PDT) Subject: Re: [PATCH v2] Enable gdb.cp/ambiguous.exp with GCC and clang To: Gary Benson , Pedro Alves Cc: gdb-patches@sourceware.org References: <1597670664-14171-1-git-send-email-gbenson@redhat.com> <4b7a4f2e-9e77-495a-759b-187aebb342aa@palves.net> <20200825142146.GA14101@blade.nx> From: Luis Machado Message-ID: Date: Wed, 26 Aug 2020 14:13:00 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200825142146.GA14101@blade.nx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, 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: Wed, 26 Aug 2020 17:13:06 -0000 Hi, On 8/25/20 11:21 AM, Gary Benson via Gdb-patches wrote: > Pedro Alves wrote: >> On 8/17/20 2:24 PM, Gary Benson wrote: >>> Pedro Alves wrote: >>>> On 7/27/20 2:09 PM, Gary Benson via Gdb-patches wrote: >>>>> + unsupported "compiler does not support -Wno-inaccessible-base" >>>> >>>> How about instead of bailing out, use "-Wno-inaccessible-base" >>>> with GCC >= 10, and use "-w" with older GCCs? >>> >>> Sure. How about this? >> >> OK. > > Thanks, I pushed it. I get the following, under Ubuntu 18.04 (GCC 7.x) with this commit... FAIL: gdb.cp/ambiguous.exp: print x.x FAIL: gdb.cp/ambiguous.exp: print n.x FAIL: gdb.cp/ambiguous.exp: print j.x FAIL: gdb.cp/ambiguous.exp: print jva1.x FAIL: gdb.cp/ambiguous.exp: print jva2.x FAIL: gdb.cp/ambiguous.exp: print (A1)j FAIL: gdb.cp/ambiguous.exp: print (A1)jva1 Is the test really supposed to run with older GCC's?