i386.c (legitimize_tls_address): Generate tls_initial_exec_64_sun only when !TARGET_X32.
[gcc.git] / gcc / gcov.c
index 97071115be5e606dccaecf9d0f65f19324404f8c..d4823991d14e7ef4c91ad9c3e2359e6ebf54bce0 100644 (file)
@@ -2219,15 +2219,8 @@ read_line (FILE *file)
          return string;
        }
       pos += len;
-      ptr = XNEWVEC (char, string_len * 2);
-      if (ptr)
-       {
-         memcpy (ptr, string, pos);
-         string = ptr;
-         string_len += 2;
-       }
-      else
-       pos = 0;
+      string = XRESIZEVEC (char, string, string_len * 2);
+      string_len *= 2;
     }
       
   return pos ? string : NULL;