From: Richard Kenner Date: Mon, 4 Mar 1996 13:39:11 +0000 (-0500) Subject: (bc_strdup): Delete. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d8e9bc2436645423d7a9ffce38f70562c1e537c;p=gcc.git (bc_strdup): Delete. (bc_load_externaddr_id): Use xstrdup instead of bc_xstrdup. From-SVN: r11411 --- diff --git a/gcc/expr.c b/gcc/expr.c index aef93d8670a..14698eb9cf8 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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);