diff options
author | Alan Modra <amodra@gmail.com> | 2011-01-13 13:06:22 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-01-13 13:06:22 +0000 |
commit | 2e57b2afce83621b72b2ac8b54635ad199663dec (patch) | |
tree | a162756c66238efb1835bc8af47ad6fe0fa9177a /ld/ldctor.c | |
parent | 15b8ba76931a8fed121a0f634388e828b3cbc063 (diff) | |
download | gdb-2e57b2afce83621b72b2ac8b54635ad199663dec.zip gdb-2e57b2afce83621b72b2ac8b54635ad199663dec.tar.gz gdb-2e57b2afce83621b72b2ac8b54635ad199663dec.tar.bz2 |
PR ld/12356
* ldexp.h (exp_assop): Delete.
(exp_assign, exp_defsym): Declare.
* ldexp.c (exp_assop): Make static, handle all assignment variations.
(exp_assign, exp_defsym): New functions.
(exp_provide): Use exp_assop.
* ldgram.y (defsym_expr): Use exp_defsym.
* ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
* emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
* emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
Diffstat (limited to 'ld/ldctor.c')
-rw-r--r-- | ld/ldctor.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ld/ldctor.c b/ld/ldctor.c index c4fd9e8..1a86eb3 100644 --- a/ld/ldctor.c +++ b/ld/ldctor.c @@ -1,6 +1,6 @@ /* ldctor.c -- constructor support routines Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, - 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011 Free Software Foundation, Inc. By Steve Chamberlain <sac@cygnus.com> @@ -319,11 +319,11 @@ ldctor_build_sets (void) break; } - lang_add_assignment (exp_assop ('=', ".", - exp_unop (ALIGN_K, - exp_intop (reloc_size)))); - lang_add_assignment (exp_assop ('=', p->h->root.string, - exp_nameop (NAME, "."))); + lang_add_assignment (exp_assign (".", + exp_unop (ALIGN_K, + exp_intop (reloc_size)))); + lang_add_assignment (exp_assign (p->h->root.string, + exp_nameop (NAME, "."))); lang_add_data (size, exp_intop (p->count)); for (e = p->elements; e != NULL; e = e->next) |