summaryrefslogtreecommitdiff
path: root/ld/ldexp.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2007-04-02 16:32:04 +0000
committerH.J. Lu <hjl@lucon.org>2007-04-02 16:32:04 +0000
commit82f67c426bca80cfe296534c9ccaca6e214b690d (patch)
tree5a1beb7d43353e5b4eadf049d2f4ece72c50dcfe /ld/ldexp.h
parent47cc1b03ced563395b018f3cf17012782487c844 (diff)
downloadbinutils-redhat-82f67c426bca80cfe296534c9ccaca6e214b690d.tar.gz
ld/
2007-04-02 H.J. Lu <hongjiu.lu@intel.com> PR ld/4090 * ldexp.h (node_type): Add lineno. * ldexp.c: Include "ldlex.h". (exp_intop): Set the lineno field from lineno. (exp_bigintop): Likewise. (exp_relop): Likewise. (exp_nameop): Likewise. (exp_binop): Set the lineno field from lineno of lhs. (exp_trinop): Likewise. (exp_unop): Set the lineno field from lineno of child. (exp_assop): Set the lineno field from lineno of src. (exp_provide): Likewise. (exp_assert): Set the lineno field from lineno of exp. (exp_get_abs_int): Set lineno from lineno of nonconstant expression when report problem. ld/testsuite/ 2007-04-02 H.J. Lu <hongjiu.lu@intel.com> PR ld/4090 * ld-elf/expr1.d: New file. * ld-elf/expr1.s: Likewise. * ld-elf/expr1.t: Likewise.
Diffstat (limited to 'ld/ldexp.h')
-rw-r--r--ld/ldexp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldexp.h b/ld/ldexp.h
index fed3a0da44..3534188993 100644
--- a/ld/ldexp.h
+++ b/ld/ldexp.h
@@ -32,6 +32,7 @@ typedef struct {
typedef struct {
int node_code;
+ unsigned int lineno;
enum {
etree_binary,
etree_trinary,