diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-07 22:55:54 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-07 22:55:54 +0000 |
commit | 3ef9782d37366cbfcab1b7f47e68771e71f1b728 (patch) | |
tree | 4653e3f8759069cc25169a6b0035d7270415f293 /gcc/genextract.c | |
parent | 620542d5ec1167b92f70cdc6d24c15ccc3270d03 (diff) | |
download | gcc-3ef9782d37366cbfcab1b7f47e68771e71f1b728.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17766 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genextract.c')
-rw-r--r-- | gcc/genextract.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/genextract.c b/gcc/genextract.c index f222de1f335..3577a2f67fe 100644 --- a/gcc/genextract.c +++ b/gcc/genextract.c @@ -1,5 +1,5 @@ /* Generate code from machine description to extract operands from insn as rtl. - Copyright (C) 1987, 1991, 1992, 1993 Free Software Foundation, Inc. + Copyright (C) 1987, 1991, 1992, 1993, 1997 Free Software Foundation, Inc. This file is part of GNU CC. @@ -25,6 +25,10 @@ Boston, MA 02111-1307, USA. */ #include "obstack.h" #include "insn-config.h" +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif + static struct obstack obstack; struct obstack *rtl_obstack = &obstack; @@ -196,7 +200,6 @@ walk_rtx (x, path) register int i; register int len; register char *fmt; - register struct code_ptr *link; int depth = strlen (path); char *newpath; @@ -275,6 +278,9 @@ walk_rtx (x, path) case ADDRESS: walk_rtx (XEXP (x, 0), path); return; + + default: + break; } newpath = (char *) alloca (depth + 2); @@ -438,6 +444,7 @@ main (argc, argv) from the machine description file `md'. */\n\n"); printf ("#include \"config.h\"\n"); + printf ("#include <stdio.h>\n"); printf ("#include \"rtl.h\"\n\n"); /* This variable exists only so it can be the "location" |