* config/obj-ecoff.c (obj_ecoff_set_ext): Change uses of bsym to
authorIan Lance Taylor <ian@airs.com>
Tue, 22 Jun 1999 14:17:55 +0000 (14:17 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 22 Jun 1999 14:17:55 +0000 (14:17 +0000)
use symbol_get_bfdsym instead.
* config/tc-ppc.c (md_assemble): Likewise.
* config/tc-v850.c (v850_comm): Likewise.

gas/ChangeLog
gas/config/obj-ecoff.c
gas/config/tc-ppc.c
gas/config/tc-v850.c

index 2e15c9210bca101aedff33b006ff5b7b57b5be47..8959b51cbc56c3a9a735be0197de5ae21d739783 100644 (file)
@@ -1,3 +1,10 @@
+1999-06-22  Ian Lance Taylor  <ian@zembu.com>
+
+       * config/obj-ecoff.c (obj_ecoff_set_ext): Change uses of bsym to
+       use symbol_get_bfdsym instead.
+       * config/tc-ppc.c (md_assemble): Likewise.
+       * config/tc-v850.c (v850_comm): Likewise.
+
 1999-06-22  Jonathan Larmour  <jlarmour@cygnus.co.uk>
 
        * config/tc-arc.c (tc_gen_reloc): Use symbol_get_bfdsym to get at
index ec3ce8811b0bc20fc46be9a112e2766cb0803629..64892431ad70ab507f03706d3612dfb00c7d80ba 100644 (file)
@@ -1,5 +1,5 @@
 /* ECOFF object file format.
-   Copyright (C) 1993, 94, 95, 96, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1993, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc.
    Contributed by Cygnus Support.
    This file was put together by Ian Lance Taylor <ian@cygnus.com>.
 
@@ -260,8 +260,9 @@ obj_ecoff_set_ext (sym, ext)
     = &ecoff_backend (stdoutput)->debug_swap;
   ecoff_symbol_type *esym;
 
-  know (bfd_asymbol_flavour (sym->bsym) == bfd_target_ecoff_flavour);
-  esym = ecoffsymbol (sym->bsym);
+  know (bfd_asymbol_flavour (symbol_get_bfdsym (sym))
+       == bfd_target_ecoff_flavour);
+  esym = ecoffsymbol (symbol_get_bfdsym (sym));
   esym->local = false;
   esym->native = xmalloc (debug_swap->external_ext_size);
   (*debug_swap->swap_ext_out) (stdoutput, ext, esym->native);
index aca3d22a3bdfdacf26f916e7b7794af07802450f..56c2a48e1a95bda47c0463a4a2520216285f213b 100644 (file)
@@ -1783,7 +1783,8 @@ md_assemble (str)
              if (ex.X_op == O_symbol) 
                {                 
                  assert (ex.X_add_symbol != NULL);
-                 if (ex.X_add_symbol->bsym->section != tocdata_section)
+                 if (symbol_get_bfdsym (ex.X_add_symbol)->section
+                     != tocdata_section)
                    {
                      as_bad(_("[tocv] symbol is not a toc symbol"));
                    }
index d85cfce9eafc29e0f0cb17d043db6bc10bb7d8b4..a480c8d750dbea5c19a24efe188e5f64e63e74c7 100644 (file)
@@ -548,7 +548,7 @@ v850_comm (area)
       goto allocate_common;
     }
 
-  symbolP->bsym->flags |= BSF_OBJECT;
+  symbol_get_bfdsym (symbolP)->flags |= BSF_OBJECT;
 
   demand_empty_rest_of_line ();
   return;