summaryrefslogtreecommitdiff
path: root/gcc/genpeep.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-22 05:23:33 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-22 05:23:33 +0000
commitad6c9a5853f72263ee79ceb7afb39e37e8697d85 (patch)
tree279c567a607717883b54fd2f58e33c32342072aa /gcc/genpeep.c
parent9e2d273738166a11573320e220897da1bda74de1 (diff)
downloadgcc-ad6c9a5853f72263ee79ceb7afb39e37e8697d85.tar.gz
Warning fixes:
* Makefile.in (varasm.o): Depend on sdbout.h. (sdbout.o): Depend on toplev.h. * collect2.c (scan_prog_file): Cast fprintf argument to `long' and use %ld specifier. * final.c (shorten_branches): Cast first arg of `bzero' to char *. * genextract.c (main): When creating insn-extract.c, mark variable `i' with ATTRIBUTE_UNUSED. * genpeep.c (main): When creating insn-peep.c, mark variables `insn', `x' and `pat' with ATTRIBUTE_UNUSED. * objc/init.c (__objc_tree_print): Wrap function definition in macro `DEBUG'. * objc/objc-act.c (encode_array): Cast sprintf argument to `long' and use %ld specifier. (adorn_decl): Likewise, twice. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20650 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genpeep.c')
-rw-r--r--gcc/genpeep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genpeep.c b/gcc/genpeep.c
index fd3939843bb..ab65df7b5af 100644
--- a/gcc/genpeep.c
+++ b/gcc/genpeep.c
@@ -481,7 +481,7 @@ from the machine description file `md'. */\n\n");
printf ("#define operands peep_operand\n\n");
printf ("rtx\npeephole (ins1)\n rtx ins1;\n{\n");
- printf (" rtx insn, x, pat;\n\n");
+ printf (" rtx insn ATTRIBUTE_UNUSED, x ATTRIBUTE_UNUSED, pat ATTRIBUTE_UNUSED;\n\n");
/* Early out: no peepholes for insns followed by barriers. */
printf (" if (NEXT_INSN (ins1)\n");