aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-04-02 16:32:04 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-04-02 16:32:04 +0000
commitf856040accecf254a5130936e69218ed935711a6 (patch)
treee999c053ca724603cd1ebda3d72e3e52f0c95d85 /ld/ldexp.h
parentgas/ (diff)
downloadbinutils-gdb-f856040accecf254a5130936e69218ed935711a6.tar.gz
binutils-gdb-f856040accecf254a5130936e69218ed935711a6.tar.bz2
binutils-gdb-f856040accecf254a5130936e69218ed935711a6.zip
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 fed3a0da44c..3534188993a 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,