aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2012-02-18 11:55:45 +0000
committerHans-Peter Nilsson <hp@axis.com>2012-02-18 11:55:45 +0000
commit390858943d9e9e40283bda3b038faa592083450f (patch)
tree83984bc763c04252ccc0d6fd4bed21d80fad72dc /ld
parent809d7530cc7906502ca0b0976f85a91f08221996 (diff)
downloadgdb-390858943d9e9e40283bda3b038faa592083450f.zip
gdb-390858943d9e9e40283bda3b038faa592083450f.tar.gz
gdb-390858943d9e9e40283bda3b038faa592083450f.tar.bz2
* ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
temporary variable node used for NULL argument.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldmisc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 4df7514..f5db339 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-18 Hans-Peter Nilsson <hp@axis.com>
+
+ * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
+ temporary variable node used for NULL argument.
+
2012-02-18 Alan Modra <amodra@gmail.com>
PR ld/13343
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index 21e6f4f8..5112c71 100644
--- a/ld/ldmisc.c
+++ b/ld/ldmisc.c
@@ -241,12 +241,12 @@ vfinfo (FILE *fp, const char *fmt, va_list arg, bfd_boolean is_warning)
case 'S':
/* Print script file and linenumber. */
{
- node_type node;
+ etree_type node;
etree_type *tp = va_arg (arg, etree_type *);
if (tp == NULL)
{
- tp = (etree_type *) &node;
+ tp = &node;
tp->type.filename = ldlex_filename ();
tp->type.lineno = lineno;
}