diff options
author | Robert Lipe <robertl@dgii.com> | 1998-02-07 22:55:54 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-02-07 15:55:54 -0700 |
commit | ccd043a9567fdbb092524a5f767066c19152df46 (patch) | |
tree | 4653e3f8759069cc25169a6b0035d7270415f293 /gcc/genrecog.c | |
parent | 6553db017bb3ef9575c4fe8883a6a5ee89f5c620 (diff) | |
download | gcc-ccd043a9567fdbb092524a5f767066c19152df46.tar.gz |
c-common.c: Include <stdlib.h> and <string.h>/<strings.h>.
* c-common.c: Include <stdlib.h> and <string.h>/<strings.h>.
* calls.c (expand_call): Remove unused variables funtree,
n_regs, and tmpmode.
* dbxout.c, except.c: Include <string.h>/<strings.h>.
* explow.c: (plus_constant_for_output_wide) Removed unused
variable all_constant.
* c-decl.c, genattr.c, genattrtab.c, getconfig.c, genemit.c
genextract.c, genflags.c, genopinit.c genoutput.c, genpeep.c,
genrecog.c, global.c, integrate.c , stupid.c : Include
<stdlib.h>.
* genextract.c: (walk_rtx) Remove unused variable link.
* genrecog.c: (concat) Remove unreferenced static function.
* prefix.c: Include <string.h>/<strings.h>, <stdlib.h>
* stmt.c: Include <stdlib.h>.
(expand_asm_operands): Remove unused variable val1.
(expand_return): Remove unused variable block.
(pushcase): Remove unused variables l and n.
(pushcaserange): Likewise.
* unroll.c (unroll_loop): Remove unused variable temp.
From-SVN: r17766
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r-- | gcc/genrecog.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c index c61ae097389..ef85c6e6fbd 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -51,6 +51,10 @@ Boston, MA 02111-1307, USA. */ #include "rtl.h" #include "obstack.h" +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif + static struct obstack obstack; struct obstack *rtl_obstack = &obstack; @@ -191,7 +195,6 @@ static void change_state PROTO((char *, char *, int)); static char *copystr PROTO((char *)); static void mybzero PROTO((char *, unsigned)); static void mybcopy PROTO((char *, char *, unsigned)); -static char *concat PROTO((char *, char *)); static void fatal PROTO((char *)); char *xrealloc PROTO((char *, unsigned)); char *xmalloc PROTO((unsigned)); @@ -1646,25 +1649,6 @@ mybcopy (in, out, length) *out++ = *in++; } -static char * -concat (s1, s2) - char *s1, *s2; -{ - register char *tem; - - if (s1 == 0) - return s2; - if (s2 == 0) - return s1; - - tem = (char *) xmalloc (strlen (s1) + strlen (s2) + 2); - strcpy (tem, s1); - strcat (tem, " "); - strcat (tem, s2); - - return tem; -} - char * xrealloc (ptr, size) char *ptr; |