+2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * ldexp.h (union etree_union): Remove defsym field.
+ * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
+ parameter.
+ (exp_assign): Remove passing of defsym parameter.
+ (exp_defsym): Likewise.
+ (exp_provide): Likewise.
+
2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
* ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
exp_assop (const char *dst,
etree_type *src,
enum node_tree_enum class,
- bfd_boolean defsym,
bfd_boolean hidden)
{
etree_type *n;
n->assign.type.node_class = class;
n->assign.src = src;
n->assign.dst = dst;
- n->assign.defsym = defsym;
n->assign.hidden = hidden;
return n;
}
etree_type *
exp_assign (const char *dst, etree_type *src, bfd_boolean hidden)
{
- return exp_assop (dst, src, etree_assign, FALSE, hidden);
+ return exp_assop (dst, src, etree_assign, hidden);
}
/* Handle --defsym command-line option. */
etree_type *
exp_defsym (const char *dst, etree_type *src)
{
- return exp_assop (dst, src, etree_assign, TRUE, FALSE);
+ return exp_assop (dst, src, etree_assign, FALSE);
}
/* Handle PROVIDE. */
etree_type *
exp_provide (const char *dst, etree_type *src, bfd_boolean hidden)
{
- return exp_assop (dst, src, etree_provide, FALSE, hidden);
+ return exp_assop (dst, src, etree_provide, hidden);
}
/* Handle ASSERT. */