* config/tc-h8300.c (h8300hmode): Record the machine type
authorJeff Law <law@redhat.com>
Wed, 29 Aug 2001 18:50:56 +0000 (18:50 +0000)
committerJeff Law <law@redhat.com>
Wed, 29 Aug 2001 18:50:56 +0000 (18:50 +0000)
if BFD_ASSEMBLER is defined.
(h8300smode, md_begin): Similarly.

gas/ChangeLog
gas/config/tc-h8300.c

index b3dce541da2148e85859b5f5675c16439c9522fa..bc2af7dfd7f040ad22a3db1ed49aade96f7b03ef 100644 (file)
@@ -1,3 +1,9 @@
+Wed Aug 29 12:49:58 2001  Jeffrey A Law  (law@cygnus.com)
+
+       * config/tc-h8300.c (h8300hmode): Record the machine type 
+       if BFD_ASSEMBLER is defined.
+       (h8300smode, md_begin): Similarly.
+
 2001-08-29  Joel Sherrill <joel@OARcorp.com>
 
        * configure.in (i[3456]86-*-rtems*, m68*-*-rtems*): Change 
index eaf250071c9c486a21aa9c33fa51dc720b1f3de0..d9721f7ad6505349c807d5b91444bc0490894e02 100644 (file)
@@ -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;