From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51972 invoked by alias); 21 Jul 2016 14:00:36 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 51472 invoked by uid 89); 21 Jul 2016 14:00:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 21 Jul 2016 14:00:29 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1747EC05AA5E; Thu, 21 Jul 2016 14:00:28 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6LE0Q3t021302; Thu, 21 Jul 2016 10:00:27 -0400 Subject: Re: [commit] [testsuite patch] Fix gdb.btrace/tailcall-only.exp errors on x86_64-m32 To: "Metzger, Markus T" , Jan Kratochvil References: <20160408155331.GA31979@host1.jankratochvil.net> <4adcda99-ae37-00d8-c38f-37702f7a50b4@redhat.com> <20160720142247.GB16994@host1.jankratochvil.net> <20160720143844.GA14699@host1.jankratochvil.net> <2234b2b7-47af-9887-ee70-495be177f038@redhat.com> Cc: "gdb-patches@sourceware.org" From: Pedro Alves Message-ID: <759c4b90-219f-deb5-495f-9fc3c978f890@redhat.com> Date: Thu, 21 Jul 2016 14:00:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-07/txt/msg00253.txt.bz2 On 07/21/2016 02:50 PM, Metzger, Markus T wrote: > I use the triplet to select the source files for a test. Seems that wasn't such > a good idea. > > Using the pointer size doesn't seem to be such a good idea, either, as x32 > uses x86_64 ISA with 32-bit pointers. But that's exactly what you want. > > Is there a recommended/documented way on how this should be done? - is_amd64_regs_target detects x86_64 ISA. - is_lp64_target detects 64-bit/32-bit pointers. Thus: is_amd64_regs_target && is_lp64_target == 64-bit is_amd64_regs_target && !is_lp64_target == x32 !is_amd64_regs_target == 32-bit See intro comments to is_amd64_regs_target and proc is_x86_like_target. Thanks, Pedro Alves