(bc_strdup): Delete.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 4 Mar 1996 13:39:11 +0000 (08:39 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 4 Mar 1996 13:39:11 +0000 (08:39 -0500)
(bc_load_externaddr_id): Use xstrdup instead of bc_xstrdup.

From-SVN: r11411

gcc/expr.c

index aef93d8670a0581a211c458605a72f77d42e2a90..14698eb9cf86d802d157b7e4f2edae4b056cfc5e 100644 (file)
@@ -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);