3 Copyright (C) 1991 Free Software Foundation, Inc.
5 This file is part of GLD, the Gnu Linker.
7 GLD is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 1, or (at your option)
12 GLD is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GLD; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
24 /* The result of an expression tree */
28 struct lang_output_section_statement_struct *section;
44 etree_value } node_class;
49 typedef union etree_union
54 union etree_union *lhs;
55 union etree_union *rhs;
59 union etree_union *cond;
60 union etree_union *lhs;
61 union etree_union *rhs;
66 union etree_union *src;
71 union etree_union *child;
85 PROTO(etree_type *,exp_intop,(bfd_vma));
87 PROTO(etree_value_type, invalid,(void));
88 PROTO(etree_value_type, exp_fold_tree,(etree_type *, struct
89 lang_output_section_statement_struct *, lang_phase_type,
92 PROTO(etree_type *, exp_binop,(int, etree_type *, etree_type *));
93 PROTO(etree_type *,exp_trinop,(int,etree_type *, etree_type *, etree_type *));
94 PROTO(etree_type *,exp_unop,(int, etree_type *));
95 PROTO(etree_type *,exp_nameop,(int, char *));
96 PROTO(etree_type *,exp_assop,(int, char *, etree_type *));
97 PROTO(void, exp_print_tree,(struct _iobuf *, etree_type *));
98 PROTO(bfd_vma, exp_get_vma,(etree_type *, bfd_vma, char *, enum boolean));
99 PROTO(int, exp_get_value_int,(etree_type *, int, char *, enum boolean));