[gas][arm] Add -mwarn-restrict-it
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Wed, 11 Dec 2019 15:53:26 +0000 (15:53 +0000)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Wed, 11 Dec 2019 15:53:26 +0000 (15:53 +0000)
commit24f19ccb8907b8d2bafb905a5db1a3537084d522
treee9d47fd87244ef8769fad5d2f761509f19923247
parent2e744276988acd52b967d2505c42ef170147b5f9
[gas][arm] Add -mwarn-restrict-it

Add a -m{no-}warn-restrict-it option to control IT related warnings in
ARMv8-A and ARMv8-R.  This is disabled by default.

Committed on behalf of Wilco Dijkstra.

gas/ChangeLog:
2019-12-11  Wilco Dijkstra  <wdijkstr@arm.com>

* config/tc-arm.c (warn_on_restrict_it): Add new variable.
(it_fsm_post_encode): Check warn_on_restrict_it.
(arm_option_table): Add -mwarn-restrict-it/-mno-warn-restrict-it.
* testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: Add -mwarn-restrict-it.
* testsuite/gas/arm/armv8-2-fp16-scalar-bad-ext.d: Likewise.
* testsuite/gas/arm/armv8-a-bad.d: Likewise.
* testsuite/gas/arm/armv8-a-it-bad.d: Likewise.
* testsuite/gas/arm/armv8-r-bad.d: Likewise.
* testsuite/gas/arm/armv8-r-it-bad.d: Likewise.
* testsuite/gas/arm/sp-pc-validations-bad-t-v8a.d: Likewise.
* testsuite/gas/arm/udf.d: Likewise.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/gas/arm/armv8-2-fp16-scalar-bad-ext.d
gas/testsuite/gas/arm/armv8-2-fp16-scalar-bad.d
gas/testsuite/gas/arm/armv8-a-bad.d
gas/testsuite/gas/arm/armv8-a-it-bad.d
gas/testsuite/gas/arm/armv8-r-bad.d
gas/testsuite/gas/arm/armv8-r-it-bad.d
gas/testsuite/gas/arm/sp-pc-validations-bad-t-v8a.d
gas/testsuite/gas/arm/udf.d