From: Richard Kenner Date: Mon, 4 Mar 1996 13:40:48 +0000 (-0500) Subject: (strdup): Delete. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42b8bb14ed3286a6337d60aff094cf2ba2474b81;p=gcc.git (strdup): Delete. (float_label): xstrdup instead of strdup. From-SVN: r11413 --- diff --git a/gcc/config/1750a/1750a.c b/gcc/config/1750a/1750a.c index 90a4fddfc7e..4ccd33ff8de 100644 --- a/gcc/config/1750a/1750a.c +++ b/gcc/config/1750a/1750a.c @@ -125,25 +125,6 @@ function_arg (cum, mode, type, named) } -#ifndef STRDUP -char * -strdup (str) - char *str; -{ - char *p; - if (str == NULL) - return NULL; - if ((p = (char *) malloc (strlen (str) + 1)) == NULL) - { - fprintf (stderr, "dynamic memory exhausted"); - abort (); - } - return strcpy (p, str); -} - -#endif - - double get_double (x) rtx x; @@ -178,7 +159,7 @@ float_label (code, value) (*p == '-') ? 'm' : *p; p++; } - return strdup (label); + return xstrdup (label); }