]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR30046, power cmpi leads to unknown architecture
authorAlan Modra <amodra@gmail.com>
Thu, 16 Feb 2023 10:17:44 +0000 (20:47 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 2 Mar 2023 01:04:57 +0000 (11:34 +1030)
commit3d0046f39aa097e957c97f88ba24ccd87968f379
tree58b155b33a49333770915aa25c08babbb8f8feb3
parent5c87fb1d59b8414796016af7e5ea8c97675e1141
PR30046, power cmpi leads to unknown architecture

PowerPC ELF always uses bfd_arch_powerpc, so we shouldn't allow the
gas -mpwr, -mpwr2 or -mpwrx options to choose bfd_arch_rs6000.
Given the possible values of ppc_cpu, I think the as_fatal at the end
of ppc_arch will never be reached, so it can be deleted and the code
simplified a little.

PR 30046
* config/tc-ppc.c (ppc_arch): Return bfd_arch_powerpc for ELF.
Delete dead code.

(cherry picked from commit 4d826e132ccc38c3081209bf3a7a107f8b23ffd4)
gas/config/tc-ppc.c