From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2047.outbound.protection.outlook.com [40.107.20.47]) by sourceware.org (Postfix) with ESMTPS id 0281A385626F for ; Fri, 6 May 2022 09:09:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0281A385626F ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=XLOyfiU2bhekt8/Wt5X/gZ/6qiQxBA/48dN8Bi2yRQO24XNwzItLkYeOsPNwLnFAKnpBBcTRh/ZMWSbG+LKYbb9hCBx1Z11tRuBavtRIXqXC3P62fFvdbmvKd6RRdOH5iJiRoHqQ3KOd2wdKpL58gmMa1ZVbQMhVhGtG0elOE8eGo+GWXy+hCIMMZfS82sLRpR66e/4FmKsF75pHaYzc24wTL/UbaNi30RXDDws7JFYWCtgCqnMQwc6hQVmLt0C/OqWerXaddzl0yqpgU+k37nWqcRTu2g0llnxxMjCmsKzwfSPLRFSU5HsyqenExsSglXHzeQg6emk97oJepG64Vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JeQpObFCvv7RH8I1gx2bywkNNcvOC3XQNT5a+EP27Ag=; b=LDhmhTuJ9n1hJ2/yqG+oDFBPMSNnjBuOQXh7t9TsMVcsyDVn91zHwiNsa10K4paVrGxx4IJuhRsN3xruZN2DCR7Kc1a/NywLLg47Z1gqzEV433UlDSZlHpAQUc1ob84bKOf8G2OtjHlv89N40DnhxsKIv2UPl/Fb5Ps6PcVGzOrUK3f06vsohwX8fpTqU472N4t+2FOCbbVykLtl+HNzU3OfGlYtuB7q0zuvw6xy98gtGvwYPf9PGE8FkoCgPL2DBoF2Cbhn3Z2KRilphq8frbgv3Uvk+ZQ2EzYhEmrcFdk9RLtUzpxJCJ5wmJGylLYKUl4yHUzWPa3c0mRs871VTA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) Received: from DB3PR08CA0002.eurprd08.prod.outlook.com (2603:10a6:8::15) by AM9PR08MB6179.eurprd08.prod.outlook.com (2603:10a6:20b:2da::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.13; Fri, 6 May 2022 09:09:21 +0000 Received: from DBAEUR03FT036.eop-EUR03.prod.protection.outlook.com (2603:10a6:8:0:cafe::81) by DB3PR08CA0002.outlook.office365.com (2603:10a6:8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.18 via Frontend Transport; Fri, 6 May 2022 09:09:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT036.mail.protection.outlook.com (100.127.142.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.15 via Frontend Transport; Fri, 6 May 2022 09:09:19 +0000 Received: ("Tessian outbound 62985e3c34b6:v118"); Fri, 06 May 2022 09:09:19 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4a724573ba232c7a X-CR-MTA-TID: 64aa7808 Received: from 58acdb832a17.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 409974E2-7977-4196-92B4-0A45CA3FF138.1; Fri, 06 May 2022 09:09:13 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 58acdb832a17.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 06 May 2022 09:09:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D3YcIdqfrEzb8k1VrbrSTUgbUIVsSJDt3NnPwrp73732gjACSawToSnhvkHWr9NKJeFwEJlq+wWjAehm6TFnnDBZ+Qp4w/VPUtc8F9Gn5tRm/EGP3CoywzlpMacRzk6d627Rzr+v608kYra4JHUWUmb/WIQ+0qLtmzIw2Ew59yGc7ZDEku9PRsSh1pg3tiSLTzDEISsV4xAxlhzSaCiTN6vKno4ij6sESqqWU0+nWuRG1C1rqfyUVOnUFnkh6pBR/RpdlV8IZ1jFEAZfxo0DrbkNJKlWJZk/T8GrN4FbKJufamIr28b+9naP91WpCsSfDRD1x/GdLvtrNHN+4nOKag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JeQpObFCvv7RH8I1gx2bywkNNcvOC3XQNT5a+EP27Ag=; b=CKiStZfXGcKsNHHyGCEkP9NBMn+qVF0pPigcCnQo4XHfLWHy9+Sk8LPaucR5dJctGsMED4ix6v3pYQreVOpxhkxMzog7yAzf5CSEZBlrPUiNC8UarFleTHmy05uGkFo37aiONrBQZnkrxcoFQEBip4T8hFTIrt2RuFtgRkli/tVHYX6qTBBT6VYcu2ezdsqgRtZSf86chqA1SD6bYRMfmfJBq+N42sUQwdT0xyIfnBMlY4FITFYdyTrA12+1VD8jJQ74/cZfNzgVlBUAVUvjo6xgsS4vwdvNFE1eRJO3o4MamyFMPFnIJB3Amb7/LdGe+akkFfB16XDmsFvgpEhMig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by AM9PR08MB7032.eurprd08.prod.outlook.com (2603:10a6:20b:41e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.13; Fri, 6 May 2022 09:09:12 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::7080:6233:cf8f:a8a6]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::7080:6233:cf8f:a8a6%7]) with mapi id 15.20.5206.025; Fri, 6 May 2022 09:09:11 +0000 Message-ID: Date: Fri, 6 May 2022 10:09:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] Don't define ARCH_cris for BFD64 Content-Language: en-US To: Hans-Peter Nilsson , Alan Modra Cc: binutils@sourceware.org, pedro@palves.net References: <20220504075628.81292-1-luis.machado@arm.com> <88ada15d-c371-df10-368e-f1c9fb91c289@arm.com> <20220504143703.58AD620462@pchp3.se.axis.com> <20220506023524.A006820448@pchp3.se.axis.com> From: Luis Machado In-Reply-To: <20220506023524.A006820448@pchp3.se.axis.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0427.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a0::31) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: cd49ae5d-4adb-48f9-d877-08da2f401ab5 X-MS-TrafficTypeDiagnostic: AM9PR08MB7032:EE_|DBAEUR03FT036:EE_|AM9PR08MB6179:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: dN/1f4/X2aYQ9cPtL6p6CThbuNGGQzi8Ef2kQUFOdsBcaTs8RVvXe27RBVxwzh9tIU/dWektHIUrIxVK8MaAxxKPYBV9fhpcKhZMH1fCpsBI4qwF/a2GT/1ejWHa18x8icjzGiiinYxyWoIxg1bLgH6BUNcWMHoPIuhmnKq7sdvPCyuwUooRZhz7/bYSsHZQk7FP451SL5fD1KTyTkatYDio/Fjo4GtPfiW8pPMl8uZJXYU2FlpQ5lHNywT06hkG5p3bkwn9Z5l2gvxbtCQ1txJsiqMJz74e9A/OdEcEQ2pJKgxS8zhmlpc6I7GHvzk5bH2oPlOsZK6uwQtEBNnUJ7rf/EKunVyFSIkIuJvUK4LdUiedLomZc3Wt/9e8B2lJZL8lLxXDxZbw/BS0SlNNcOuK9wBtWutWrtRStWk120NVD3CCxfXAigftl+YNmyAGOYKUO4cbS2cCuK/Ya7NqjGuGKk5hU4Od0uoGxoAhG9/tR38qROSBWAzL+z5k1u1Lr2eBPL711umG5QI+8Cu3ZTOgqChMBt626b14+kc0teY3Y+cUYwG54uFhzo4hETanGNg8l6cBUmlaFLRePz+5aToorqaSR0pT8uZX44ta3ccAJ93zla/erV0SfrDiKBgr+NqrCFa4OjLdLvDiJtGATCvKnprA3L/V4f3XJJGirTffJrA+zbc/GbjHCp6U5JmQsMpyZMmTFfsT4xYjx7SiBG1ksFJ5L1Yyw/UP0K13meQ= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3919.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(2906002)(38100700002)(86362001)(31696002)(8936002)(5660300002)(44832011)(6486002)(2616005)(6512007)(53546011)(6506007)(26005)(110136005)(316002)(36756003)(508600001)(186003)(66476007)(8676002)(66556008)(4326008)(83380400001)(31686004)(66946007)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB7032 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT036.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: a1e326c6-87ec-4720-b3c1-08da2f401570 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SGGjRee+VACZGZ1nOlTs2DNQnvzOBpOmxnIAYd3lKqhQZx5Os2bbqODs9nd+qgLIuGmIGvXSSgszLv7f6PjJtz+4BKGVH3WqEjRxa7eElXiZncwX+OllBCXkHXHoBta9MDGlQ+BjyM0x1xf5Fs/LuSWP7G/Ds42aHx6rTnpCIDqebEm9Suma89YNqQ0ZK8PglPFlZTksEz3LcrhiZIK0jiw98f3/TyHm4BFvZhF6edTMrtQ8XJJx4f8h3tFuxuEUZoPZPLaH56rq9oHBaNA5QixTPvRMlf1s6KZmRIucCEoFQoUazRCaLi+TRG3dGMFAQioKi87v5+/TBol9QM5M7rNVq7vY/somlQ5BaAhem1ZwLT3N9+XW5jt09u+h9Px/3xYQqk5RXMX3Bpee2lBA024WBLpar0pcH+R7FAeW3sEyUXA2R2lAmoC/0IYfCsOJglWK46M+Vq5bzVxm1OT2gFTlZPqEGvm35hll9kZeQYZxd/Up5uscHiVw7wq97Jrw1xri/KsXrCHBIcSeommAGDWgcwWzDq6pNFTxU3G9IqTviDa18u4nHrtFyaQjrktxxRuRRpVr5k/SadStZ88ySu+z1CzqN3bkOZeLVtvDd74qtoBk66qziRXuIL4k8chPJa3qswnSzcgRzV6T7v1yUWNP9jXfFkMvNY9BBOguRG3McfmT4WafVsUKD3yW//jM2YcfpTzOquB94Nl7p+aheQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(508600001)(316002)(8936002)(70206006)(36860700001)(356005)(26005)(6486002)(70586007)(40460700003)(110136005)(8676002)(86362001)(31696002)(4326008)(5660300002)(31686004)(2906002)(6512007)(81166007)(53546011)(6506007)(186003)(107886003)(2616005)(336012)(44832011)(83380400001)(82310400005)(36756003)(47076005)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2022 09:09:19.8727 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd49ae5d-4adb-48f9-d877-08da2f401ab5 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT036.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6179 X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2022 09:09:26 -0000 On 5/6/22 03:35, Hans-Peter Nilsson via Binutils wrote: >> From: Alan Modra >> Date: Fri, 6 May 2022 02:56:46 +0200 > >> As is often the case the truth is more complicated than it would >> appear on the surface. > > While aiming for the bigger picture is a good thing, you're > here letting the perfect be the enemy of the good. A > reasonable step would be to get all targets want64=true, to > avoid this annoying host-32/64-bit difference. > >> I think the cris support works fine with a >> 32-bit bfd. It's just that the cris testsuite has expressions >> that overflow 32 bits. >> >> gas/testsuite/gas/cris/shexpr-1.s has this expression: >> >> ((0x17<<23)+((0xfede4194/8192)<<4)+8) >> >> It evaluates to 0x0bff6f28 when calculating in 64 bits, but to >> 0x0b7f6f38 when calculating in 32 bits > > But seeing it as "calculating in 32 bits" is just So Wrong! > > I admit I worked around this missing tracking of > subexpression signeness and papering over the gas bug by > just making the problem go away for *this* port. > > Now 20 years down the line, when 64-bit is the norm, IMHO > that's a preferred solution (while waiting for Someone to > rewrite the expression bits, but it also happens to get > host-size-uniform address output). > > brgds, H-P It does seem like trying to adjust code like this is a bit dangerous and may lead to some breakage that is hard to exercise. From a "--enable-targets=all" and GDB build's perspective, making these targets use a 64-bit BFD and defining disassembler functions conditionally according to the presence of a 32-bit BFD or 64-bit BFD causes some issues. I think most of the problem lies in the fact that sim/ wants to build everything (all sims, for all targets), regardless of whether we're using a 32-bit BFD or 64-bit BFD. And that leads to undesirable build breakages for 32-bit builds. If a disassembler function is not defined properly for GDB, then that also leads to internal errors in GDB's testsuite, as the architecture will be visible to GDB, and it will cycle through all of the available architectures doing multiple checks. I'd expect at least a clean 32-bit build to go through, and that has been my goal so far. And I did notice some files were placed incorrectly (ones using 64-bit BFD's in the 32-bit BFD list or the other way around). Then again, it seems the current mechanism is to keep everything in sync by hand, which is a bit fragile.