From 1ecd6c4ad4b1b77b7073c6556c35ca2cb7217780 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 1 Sep 1993 19:29:02 +0000 Subject: Deleted explicit "return" statements without values at the ends of functions. --- gas/symbols.c | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'gas') diff --git a/gas/symbols.c b/gas/symbols.c index a5acf1f..c66f48b 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -17,7 +17,7 @@ along with GAS; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ -#define DEBUG +/* #define DEBUG_SYMS /* to debug symbol list maintenance */ #include @@ -129,9 +129,9 @@ symbol_new (name, segment, value, frag) obj_symbol_new_hook (symbolP); -#ifdef DEBUG +#ifdef DEBUG_SYMS verify_symbol_chain(symbol_rootP, symbol_lastP); -#endif /* DEBUG */ +#endif /* DEBUG_SYMS */ return symbolP; } @@ -315,9 +315,7 @@ colon (sym_name) /* just seen "x:" - rattle symbols & frags */ #ifdef tc_frob_label tc_frob_label (symbolP); #endif - - return; -} /* colon() */ +} /* @@ -485,9 +483,9 @@ symbol_remove (symbolP, rootPP, lastPP) symbolP->sy_previous->sy_next = symbolP->sy_next; } /* if not first */ -#ifdef DEBUG +#ifdef DEBUG_SYMS verify_symbol_chain (*rootPP, *lastPP); -#endif /* DEBUG */ +#endif /* DEBUG_SYMS */ } /* Set the chain pointers of SYMBOL to null. */ @@ -521,9 +519,9 @@ symbol_insert (addme, target, rootPP, lastPP) target->sy_previous = addme; addme->sy_next = target; -#ifdef DEBUG +#ifdef DEBUG_SYMS verify_symbol_chain (*rootPP, *lastPP); -#endif /* DEBUG */ +#endif /* DEBUG_SYMS */ } #endif /* SYMBOLS_NEED_BACKPOINTERS */ @@ -936,8 +934,7 @@ fb_label_instance_inc (label) fb_labels[fb_label_count] = label; fb_label_instances[fb_label_count] = 1; ++fb_label_count; - return; -} /* fb_label_instance_inc() */ +} static long fb_label_instance (label) @@ -1194,8 +1191,8 @@ void S_SET_EXTERNAL (s) symbolS *s; { - s->bsym->flags |= BSF_EXPORT | BSF_GLOBAL; - s->bsym->flags &= ~BSF_LOCAL; + s->bsym->flags |= BSF_GLOBAL; + s->bsym->flags &= ~(BSF_LOCAL|BSF_WEAK); } void @@ -1203,7 +1200,15 @@ S_CLEAR_EXTERNAL (s) symbolS *s; { s->bsym->flags |= BSF_LOCAL; - s->bsym->flags &= ~(BSF_EXPORT | BSF_GLOBAL); + s->bsym->flags &= ~(BSF_GLOBAL|BSF_WEAK); +} + +void +S_SET_WEAK (s) + symbolS *s; +{ + s->bsym->flags |= BSF_WEAK; + s->bsym->flags &= ~(BSF_GLOBAL|BSF_LOCAL); } void -- cgit v1.1