From 85051959f4b156350cb8fcb4c08db004950f3ea1 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 14 Jul 1993 19:35:45 +0000 Subject: * Changes to keep a full expression as the value of a symbol, not just a longword: * struc-symbol.h: New field sy_value. * as.h: Include expr.h before struc-symbol.h. * expr.h: Use struct symbol rather than symbolS. * symbols.c (S_GET_VALUE, S_SET_VALUE): Rewrote to retrieve value of sy_value field; compile unconditionally, not just if BFD_ASSEMBLER. * symbols.h: Compile S_{SG}ET_VALUE prototypes unconditionally. * write.c (write_object_file): Set BFD symbol value to gas symbol value. * config/obj-aout.h, config/obj-bout.h, config/obj-coff.h, config/obj-coffbfd.h, config/obj-generic.h, config/obj-vms.h (S_GET_VALUE, S_SET_VALUE): Removed macro definitions. * config/obj-ieee.c (S_GET_VALUE, S_SET_VALUE): Removed. * config/obj-coff.h, obj-coffbfd.h: Rewrote several macros to use S_GET_VALUE rather than ost_entry.n_value. * config/obj-aout.c (obj_symbol_to_chars), config/obj-bout.c (obj_symbol_to_chars), config/obj-coff.c (obj_symbol_to_chars), config/obj-coffbfd.c (symbol_to_chars): Get value to write out using S_GET_VALUE--don't assume it is already set. * config/obj-ieee.c (do_symbols): Set BFD symbol value to gas symbol value. * config/obj-vms.c (various): Don't assign directly to S_GET_VALUE; use S_SET_VALUE instead. --- gas/as.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gas/as.h') diff --git a/gas/as.h b/gas/as.h index b6992c8..1b2561f 100644 --- a/gas/as.h +++ b/gas/as.h @@ -464,11 +464,9 @@ void subseg_new PARAMS ((segT seg, subsegT subseg)); /* this one starts the chain of target dependant headers */ #include "targ-env.h" -/* these define types needed by the interfaces */ +#include "expr.h" #include "struc-symbol.h" - #include "write.h" -#include "expr.h" #include "frags.h" #include "hash.h" #include "read.h" -- cgit v1.1