* collect2.c (dump_file): If a demangled symbol is followed by a
space, make sure we output at least one space.
From-SVN: r130243
+2007-11-16 Ian Lance Taylor <iant@google.com>
+
+ * collect2.c (dump_file): If a demangled symbol is followed by a
+ space, make sure we output at least one space.
+
2007-11-16 Richard Guenther <rguenther@suse.de>
PR middle-end/34030
diff = strlen (word) - strlen (result);
while (diff > 0 && c == ' ')
--diff, putc (' ', to);
- while (diff < 0 && c == ' ')
- ++diff, c = getc (stream);
+ if (diff < 0 && c == ' ')
+ {
+ while (diff < 0 && c == ' ')
+ ++diff, c = getc (stream);
+ if (!ISSPACE (c))
+ {
+ /* Make sure we output at least one space, or
+ the demangled symbol name will run into
+ whatever text follows. */
+ putc (' ', to);
+ }
+ }
free (result);
}