projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6127c6
)
(strdup): Delete.
author
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 4 Mar 1996 13:40:48 +0000
(08:40 -0500)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/gcc/config/1750a/1750a.c
b/gcc/config/1750a/1750a.c
index 90a4fddfc7ebe68aaa985b6f1772d7268399cc53..4ccd33ff8de876197c240e13b19b25b11007772e 100644
(file)
--- 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
x
strdup (label);
}