diff options
author | Alan Modra <amodra@gmail.com> | 2012-11-23 03:28:13 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-11-23 03:28:13 +0000 |
commit | 776fc41826bb3fba1c6ced6c28f54347004a694b (patch) | |
tree | 0af7af0fdd818bc99c56584ffe9daf8c8ccb014a /gas/config/tc-ppc.c | |
parent | 798e46b9172894d7d217de4f34a17bfdf2aa5b53 (diff) | |
download | gdb-776fc41826bb3fba1c6ced6c28f54347004a694b.zip gdb-776fc41826bb3fba1c6ced6c28f54347004a694b.tar.gz gdb-776fc41826bb3fba1c6ced6c28f54347004a694b.tar.bz2 |
include/opcode/
* ppc.h (ppc_parse_cpu): Update prototype.
opcodes/
* ppc-dis.c (ppc_parse_cpu): Add "sticky" param. Track bits
set from ppc_opts.sticky in it. Delete "retain_mask".
(powerpc_init_dialect): Choose default dialect from info->mach
before parsing -M options. Handle more bfd_mach_ppc variants.
Update common default to power7.
gas/
* config/tc-ppc.c (sticky): New var.
(md_parse_option, ppc_machine): Update ppc_parse_cpu calls.
gas/testsuite/
* gas/ppc/astest2.d: Pass -Mppc to objdump.
ld/testsuite/
* ld-powerpc/plt1.d: Update for default "at" branch hints.
* ld-powerpc/tlsexe.d: Likewise.
* ld-powerpc/tlsexetoc.d: Likewise.
* ld-powerpc/tlsopt1.d: Likewise.
* ld-powerpc/tlsopt1_32.d: Likewise.
* ld-powerpc/tlsopt2.d: Likewise.
* ld-powerpc/tlsopt2_32.d: Likewise.
* ld-powerpc/tlsopt4.d: Likewise.
* ld-powerpc/tlsopt4_32.d: Likewise.
* ld-powerpc/tlsso.d: Likewise.
* ld-powerpc/tlstocso.d: Likewise.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r-- | gas/config/tc-ppc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index de13ab1..e9df056 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -223,6 +223,7 @@ unsigned long nop_limit = 4; /* The type of processor we are assembling for. This is one or more of the PPC_OPCODE flags defined in opcode/ppc.h. */ ppc_cpu_t ppc_cpu = 0; +ppc_cpu_t sticky = 0; /* Flags set on encountering toc relocs. */ enum { @@ -1160,7 +1161,7 @@ md_parse_option (int c, char *arg) break; case 'm': - new_cpu = ppc_parse_cpu (ppc_cpu, arg); + new_cpu = ppc_parse_cpu (ppc_cpu, &sticky, arg); if (new_cpu != 0) { ppc_cpu = new_cpu; @@ -4863,7 +4864,7 @@ ppc_machine (int ignore ATTRIBUTE_UNUSED) else ppc_cpu = cpu_history[--curr_hist]; } - else if ((new_cpu = ppc_parse_cpu (ppc_cpu, cpu_string)) != 0) + else if ((new_cpu = ppc_parse_cpu (ppc_cpu, &sticky, cpu_string)) != 0) ppc_cpu = new_cpu; else as_bad (_("invalid machine `%s'"), cpu_string); |