]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: aarch64: Accept `purecap` and `hybrid` ABI parameters
authorMatthew Malcomson <matthew.malcomson@arm.com>
Thu, 29 Jul 2021 14:40:34 +0000 (15:40 +0100)
committerMatthew Malcomson <matthew.malcomson@arm.com>
Fri, 30 Jul 2021 09:20:38 +0000 (10:20 +0100)
commit87128493874c3d33fee1c75be78d4987f4516aa9
tree603207ad5b54e3d7fb287952d9a50839a99c471b
parentfdbf441869630f386839dbfdadeaf1c35e1a5d4a
gas: aarch64: Accept `purecap` and `hybrid` ABI parameters

When GCC is given an ABI parameter with `-mabi=<whatever>` it passes
that argument down to GAS.  GAS does not need to know the Morello ABI
that is being used, since all decisions are based on the processor state
(whether +c64 is enabled or not).

GAS doesn't currently accept `purecap` or `hybrid` as arguments to the
`-mabi` option.  Even though it does not need this information, I think
it should accept the arguments.  This would mean GCC does not need
implement special handling to avoid passing the `-mabi` argument to GAS
in these specific cases.

gas/ChangeLog:

2021-07-30  Matthew Malcomson  <matthew.malcomson@arm.com>

* config/tc-aarch64.c (aarch64_abi_type): Introduce PURECAP and
HYBRID enum entries.
(aarch64_abis): Add "purecap" and "hybrid" parameters.
* testsuite/gas/aarch64/morello-abis-ignored.s: New.
* testsuite/gas/aarch64/morello-abis-ignored.d: New.
gas/ChangeLog
gas/config/tc-aarch64.c
gas/testsuite/gas/aarch64/morello-abis-ignored.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/morello-abis-ignored.s [new file with mode: 0644]