This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH][gas][arm] Add -mwarn-restrict-it
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: Christophe Lyon <christophe dot lyon at linaro dot org>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 9 Dec 2019 13:41:29 +0000
- Subject: Re: [PATCH][gas][arm] Add -mwarn-restrict-it
- 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
- 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-SenderADCheck; bh=tAgusuqhPIMH6G3emYtU92eMQpJjUr5N7cssExHZmyw=; b=B0qyxf4YRcruj4aP9kPWMmoE6zuHE9iDPV62AQVJEdIZndvrlgSBlVq1BhMgEA/Yysb6XYCyTjD+Ffnsqfe90L9nU3TLPx1xG8vPRnETHqnIqcW6rGcJI+ngPWFW4qoW76ARCAqdkhrC3uz7HU9wWjLVikCwhOmhW184gY86eSyj3qCFuS84eHkfFaf4ORdzV2Ipp6/p0j9d9nlI/3gXT2LP6nfI6TN/UwEAZJrjBCLhJlJDxIlqe8GDfynRSwYFhacDiFm4Hyt2Xlf6mZAwh1Vkghj9Pec8dGQUjqXKTMGgdGqJPBbWO6aQ2puwOVAmlp4asPCbAwGjjOJDP5cNUQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jmAc9ibpioVZsaexxJkYwP2PNDa/4xPACh6+3IT3mpA44bAWtuS3+PCQ9NgrAtvvJfKra6WVgvBdl8Lvw6ReVg8c2ugYOfRe445xh0UhLgdxn4tOEwFO4/SffoslDcPSVECxmNHa/A5VZdSx7dIgdbcii3pOgYvYK6x9iEFOEfqOLVWTkindbwiSulpnr1Lvn7xocjzEWLD75FsAVg7EHjo5eiFDK8RGGTNYwAH5BwrkGEqnSgoHsNgWZXJM6J78tZ/HGa+FUDTehjpWYtZqjkPnekqW8JPgwqMiXhy/qmCISlmLUPKIFcZhFBE7zuZgqHf4W2S7H/FHN5BKLFAxgQ==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco dot Dijkstra at arm dot com;
- References: <VI1PR0801MB212700FE03F052B85637DEF5835F0@VI1PR0801MB2127.eurprd08.prod.outlook.com> <CAKdteObH6fMmZxNy8cctkfGSgwCdt2FJRF-tkbZn7ufkKPa8ow@mail.gmail.com> <VI1PR0801MB21277DC14462919B5C1214D183580@VI1PR0801MB2127.eurprd08.prod.outlook.com>,<CAKdteOakWHYJi8dn1fFTz6dDm6esWKynTRxwsyFhO4ZNqw-SSQ@mail.gmail.com>
Hi Christophe,
>> Exactly, most people just find it annoying.
>
> Sorry, I'd never come across this warning :-)
You will see it a lot if you assemble existing Thumb-2 code for ARMv8-A...
>> I don't believe it's the assembler's job to warn about potentially slow code.
>>
> So... if the code is actually faster, do you mean that the warning is
> in fact wrong? Shouldn't it be removed instead of disabled, then?
> Or does it mean that these instructions with actually be forbidden in
> v9 (my understanding is that things become deprecated in vN before
> being removed/forbidden in vN+1) ?
The warning is useless indeed, and we could remove it in the future (but
that is more work since hundreds of gas tests would fail).
The instructions are not actually deprecated. It just explicitly allows an
implementation to execute them slowly if so desired. No implementation
has done so since it would slow down existing code.
Cheers,
Wilco