aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.h
AgeCommit message (Collapse)AuthorFilesLines
1995-10-28 * symbols.c (symbol_find_or_make): Change name to be const.Ian Lance Taylor1-2/+2
* symbols.h (symbol_find_or_make): Update declaration.
1995-08-08 * struc-symbol.h (struct symbol): Add sy_mri_common bit.Ian Lance Taylor1-12/+14
* read.h (mri_comon_symbol): Declare. (s_mri_common): Declare. * read.c (mri_line_label): New static variable. (mri_common_symbol): New global variable. (potable): Add "common" and "common.s". (read_a_source_file): In MRI mode, set mri_line_label for a label at the start of a line. (s_mri_common): New function. (s_space): Handle mri_common_symbol. * symbols.c (colon): Change return value from void to symbolS *, and return new symbol. If mri_common_symbol is set, attach the new symbol to it. (resolve_symbol_value): Handle an sy_mri_common symbol. * symbols.h (colon): Change return value in declaration. * subsegs.c (subseg_set_rest): Clear mri_common_symbol. (subseg_set (both versions)): Likewise. * frags.c (frag_more): Warn if mri_common_symbol is not NULL. * write.c (adjust_reloc_syms): Skip sy_mri_common symbols. (write_object_file): Discard sy_mri_common symbols. (fixup_segment): Change relocations against sy_mri_common symbols to be against the common symbol itself. * config/obj-coff.c (yank_symbols): Discard sy_mri_common symbols. (fixup_segment): Change relocations against sy_mri_common symbols to be against the common symbol itself. * config/obj-aout.c (obj_crawl_symbol_chain): Discard sy_mri_common symbols.
1993-07-14 * Changes to keep a full expression as the value of a symbol, notIan Lance Taylor1-2/+4
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.
1993-07-07* symbols.c (symbol_new): Symbol value is type valueT.Ken Raeburn1-58/+35
(S_SET_VALUE, S_GET_VALUE): Likewise. (S_IS_*): Specify int return type explicitly. * symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed prototypes.
1992-11-23Ran "indent", for GNU coding style; some code & comments still need fixup.Ken Raeburn1-39/+60
Removed some unneeded files. configure.in: Don't look for te-386bsd.h, which doesn't exist...
1992-02-15White space and comment changes. #ifdef __STDC__ becomes #if __STDC__K. Richard Pixley1-4/+5
== 1. Get the declarations right in listing.[hc].
1992-02-13force all files to end in "/* end of filename"K. Richard Pixley1-1/+1
1992-02-13White space and comments only. The devo tree prior to this delta isK. Richard Pixley1-18/+20
tagged as "vanilla" for your convenience. There are also some comment changes.
1991-04-04Initial revisionK. Richard Pixley1-0/+77