+2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
+
+ * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
+
2002-05-24 Zack Weinberg <zack@codesourcery.com>
* config.gcc: Remove all stanzas for previously obsoleted
+
/* Top level of GNU C compiler
Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002 Free Software Foundation, Inc.
const char *name;
{
/* Make a copy of NAME. */
- char *id = (char *)xmalloc (strlen (name) + 1);
- strcpy (id, name);
+ char *id = xstrdup (name);
/* Make it look like a valid identifier for an assembler. */
clean_symbol_name (id);
- fputs (file, name);
+ fputs (name, file);
free (id);
}