diff options
author | Alan Modra <amodra@gmail.com> | 2023-02-16 20:47:44 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-02-17 08:29:00 +1030 |
commit | 4d826e132ccc38c3081209bf3a7a107f8b23ffd4 (patch) | |
tree | 0e435bc2d145167b1347d781fa7cbb583094cc4b /gdb/source.c | |
parent | 12d67b37cde0d6f8492bc2052b3fe8da4691f9d0 (diff) | |
download | binutils-4d826e132ccc38c3081209bf3a7a107f8b23ffd4.zip binutils-4d826e132ccc38c3081209bf3a7a107f8b23ffd4.tar.gz binutils-4d826e132ccc38c3081209bf3a7a107f8b23ffd4.tar.bz2 |
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.
Diffstat (limited to 'gdb/source.c')
0 files changed, 0 insertions, 0 deletions