diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-03-04 08:39:11 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-03-04 08:39:11 -0500 |
commit | 3d8e9bc2436645423d7a9ffce38f70562c1e537c (patch) | |
tree | 045bfb8e5715f546148a699b4f5266066226d21e /gcc | |
parent | e3b79a32f887c9653e69aca00c4eab079e13604f (diff) | |
download | gcc-3d8e9bc2436645423d7a9ffce38f70562c1e537c.zip gcc-3d8e9bc2436645423d7a9ffce38f70562c1e537c.tar.gz gcc-3d8e9bc2436645423d7a9ffce38f70562c1e537c.tar.bz2 |
(bc_strdup): Delete.
(bc_load_externaddr_id): Use xstrdup instead of bc_xstrdup.
From-SVN: r11411
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/expr.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -10862,16 +10862,6 @@ bc_load_externaddr (externaddr) } -static char * -bc_strdup (s) - char *s; -{ - char *new = (char *) xmalloc ((strlen (s) + 1) * sizeof *s); - strcpy (new, s); - return new; -} - - /* Like above, but expects an IDENTIFIER. */ void bc_load_externaddr_id (id, offset) @@ -10882,7 +10872,7 @@ bc_load_externaddr_id (id, offset) abort (); bc_emit_bytecode (constP); - bc_emit_code_labelref (bc_xstrdup (IDENTIFIER_POINTER (id)), offset); + bc_emit_code_labelref (xstrdup (IDENTIFIER_POINTER (id)), offset); #ifdef DEBUG_PRINT_CODE fputc ('\n', stderr); |