From 3d8e9bc2436645423d7a9ffce38f70562c1e537c Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 4 Mar 1996 08:39:11 -0500 Subject: [PATCH] (bc_strdup): Delete. (bc_load_externaddr_id): Use xstrdup instead of bc_xstrdup. From-SVN: r11411 --- gcc/expr.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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); -- 2.30.2