diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-09-13 21:32:07 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-09-13 21:32:07 +0000 |
commit | 604633aeca413d9fe75280b214894721f8186315 (patch) | |
tree | 84f5270da91f3afd187d29e3dc1e512674d74cf2 /gas/symbols.c | |
parent | 37c99ddb4ef28794e0f9cc37f02e239a1adaf881 (diff) | |
download | gdb-604633aeca413d9fe75280b214894721f8186315.zip gdb-604633aeca413d9fe75280b214894721f8186315.tar.gz gdb-604633aeca413d9fe75280b214894721f8186315.tar.bz2 |
* subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.
Wrote non-BFD_ASSEMBLER subseg_new. Now subseg_new always takes a
section name, and subseg_set always takes a segT. Changed all
callers as appropriate.
* config/obj-coffbfd.c (change_to_section): Renamed to
obj_coff_add_segment. Corrected. Made callers use subseg_new.
* config/obj-coffbfd.h (obj_segment_name, obj_add_segment):
Define.
Also some more gcc warning removal.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r-- | gas/symbols.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gas/symbols.c b/gas/symbols.c index 0a57994..bf281e2 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -82,10 +82,10 @@ symbol_begin () */ symbolS * -symbol_new (name, segment, value, frag) +symbol_new (name, segment, valu, frag) CONST char *name; /* It is copied, the caller can destroy/modify */ segT segment; /* Segment identifier (SEG_<something>) */ - valueT value; /* Symbol value */ + valueT valu; /* Symbol value */ fragS *frag; /* Associated fragment */ { unsigned int name_length; @@ -113,7 +113,7 @@ symbol_new (name, segment, value, frag) S_SET_NAME (symbolP, preserved_copy_of_name); S_SET_SEGMENT (symbolP, segment); - S_SET_VALUE (symbolP, value); + S_SET_VALUE (symbolP, valu); symbol_clear_list_pointers(symbolP); symbolP->sy_frag = frag; @@ -329,12 +329,12 @@ void symbol_table_insert (symbolP) symbolS *symbolP; { - register char *error_string; + register const char *error_string; know (symbolP); know (S_GET_NAME (symbolP)); - if (*(error_string = hash_jam (sy_hash, S_GET_NAME (symbolP), (char *) symbolP))) + if (*(error_string = hash_jam (sy_hash, S_GET_NAME (symbolP), (PTR) symbolP))) { as_fatal ("Inserting \"%s\" into symbol table failed: %s", S_GET_NAME (symbolP), error_string); @@ -542,7 +542,7 @@ verify_symbol_chain (rootP, lastP) know (symbolP->sy_next->sy_previous == symbolP); #else /* Walk the list anyways, to make sure pointers are still good. */ - *symbolP; + ; #endif /* SYMBOLS_NEED_BACKPOINTERS */ } @@ -707,7 +707,7 @@ static long *dollar_labels; static long *dollar_label_instances; static char *dollar_label_defines; static long dollar_label_count; -static long dollar_label_max; +static unsigned long dollar_label_max; int dollar_label_defined (label) @@ -745,7 +745,7 @@ dollar_label_instance (label) void dollar_label_clear () { - memset (dollar_label_defines, '\0', dollar_label_count); + memset (dollar_label_defines, '\0', (unsigned int) dollar_label_count); } #define DOLLAR_LABEL_BUMP_BY 10 |