* ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
authorHans-Peter Nilsson <hp@axis.com>
Sat, 18 Feb 2012 11:55:45 +0000 (11:55 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Sat, 18 Feb 2012 11:55:45 +0000 (11:55 +0000)
temporary variable node used for NULL argument.

ld/ChangeLog
ld/ldmisc.c

index 4df7514093f55d5ced5948915aa799ef8e4236cd..f5db339d1492d82b4ad31061b059fde7a6a86903 100644 (file)
@@ -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
index 21e6f4f84ae855f9862ea1041a1b01d36a4d2763..5112c716a45a5566801ad5c469038f26e9854c56 100644 (file)
@@ -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;
                  }
This page took 0.041788 seconds and 4 git commands to generate.