diff options
author | Jeff Law <law@redhat.com> | 2001-08-29 18:50:56 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2001-08-29 18:50:56 +0000 |
commit | 83e20b45a3a59e3e473c2f42ed4cb28924da9565 (patch) | |
tree | 6c2fd9a0b5c44d3d626854c569e092b02f0ec962 /gas/config/tc-h8300.c | |
parent | d43ded80a7e5c4ab014ead8d78026739ee7ef9b2 (diff) | |
download | ppe42-binutils-83e20b45a3a59e3e473c2f42ed4cb28924da9565.tar.gz ppe42-binutils-83e20b45a3a59e3e473c2f42ed4cb28924da9565.zip |
* config/tc-h8300.c (h8300hmode): Record the machine type
if BFD_ASSEMBLER is defined.
(h8300smode, md_begin): Similarly.
Diffstat (limited to 'gas/config/tc-h8300.c')
-rw-r--r-- | gas/config/tc-h8300.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index eaf250071c..d9721f7ad6 100644 --- a/gas/config/tc-h8300.c +++ b/gas/config/tc-h8300.c @@ -55,6 +55,10 @@ h8300hmode () { Hmode = 1; Smode = 0; +#ifdef BFD_ASSEMBLER + if (!bfd_set_arch_mach (stdoutput, bfd_arch_h8300, bfd_mach_h8300h)) + as_warn (_("could not set architecture and machine")); +#endif } void @@ -62,6 +66,10 @@ h8300smode () { Smode = 1; Hmode = 1; +#ifdef BFD_ASSEMBLER + if (!bfd_set_arch_mach (stdoutput, bfd_arch_h8300, bfd_mach_h8300s)) + as_warn (_("could not set architecture and machine")); +#endif } void @@ -117,6 +125,11 @@ md_begin () char prev_buffer[100]; int idx = 0; +#ifdef BFD_ASSEMBLER + if (!bfd_set_arch_mach (stdoutput, bfd_arch_h8300, bfd_mach_h8300)) + as_warn (_("could not set architecture and machine")); +#endif + opcode_hash_control = hash_new (); prev_buffer[0] = 0; |