summaryrefslogtreecommitdiff
path: root/gas/stabs.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-04-09 03:48:09 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-04-09 03:48:09 +0000
commit6a49edc998ecfb5285c3fca2e44fc11584150944 (patch)
treecec149cca9291d2c577ad5fef3567a75c76df81e /gas/stabs.c
parentb5e89a9353e703e1b77df0d9ce2b51f5cb6dd79a (diff)
downloadbinutils-redhat-6a49edc998ecfb5285c3fca2e44fc11584150944.tar.gz
PR gas/827
* as.h (rs_dummy): Define. * symbols.c (symbol_X_add_number): New function. * symbols.h (symbol_X_add_number): Declare. * stabs.c (aout_process_stab): Tidy symbol frag setting. * read.c (assign_symbol): New function, split out from s_set. Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy. Fix COFF hacks for multi-emulation gas. (s_set): Call assign_symbol. Remove "register" keyword. (set_zero_frag): New function. (pseudo_set): Always check for assignment to section syms. Always set segment and frag of symbol, and likewise extern for aout/bout. Handle assignment of sym=sym+/-const specially. Don't special case exp.X_add_number non-zero for O_symbol expressions. (equals): Use assign_symbol.
Diffstat (limited to 'gas/stabs.c')
-rw-r--r--gas/stabs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/stabs.c b/gas/stabs.c
index c63702f47c..1afb2368a7 100644
--- a/gas/stabs.c
+++ b/gas/stabs.c
@@ -1,6 +1,6 @@
/* Generic stabs parsing for gas.
Copyright 1989, 1990, 1991, 1993, 1995, 1996, 1997, 1998, 2000, 2001
- 2002, 2003, 2004 Free Software Foundation, Inc.
+ 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -150,11 +150,10 @@ aout_process_stab (what, string, type, other, desc)
ends in "\" and the debug info is continued in the next .stabs
directive) from being separated by other random symbols. */
symbol = symbol_create (string, undefined_section, 0,
- (struct frag *) NULL);
+ &zero_address_frag);
if (what == 's' || what == 'n')
{
/* Pick up the value from the input line. */
- symbol_set_frag (symbol, &zero_address_frag);
pseudo_set (symbol);
}
else