(strdup): Delete.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 4 Mar 1996 13:40:48 +0000 (08:40 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 4 Mar 1996 13:40:48 +0000 (08:40 -0500)
(float_label):  xstrdup instead of strdup.

From-SVN: r11413

gcc/config/1750a/1750a.c

index 90a4fddfc7ebe68aaa985b6f1772d7268399cc53..4ccd33ff8de876197c240e13b19b25b11007772e 100644 (file)
@@ -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);
 }