From d0794d14de24117e0bfd1d9391059a76459f2f87 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Tue, 28 Aug 2018 21:54:44 +0000 Subject: [PATCH] genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED to OP parmeter of generated function. * genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED to OP parmeter of generated function. From-SVN: r263934 --- gcc/ChangeLog | 5 +++++ gcc/genpreds.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3dbee469a2b..bd3ad1c4927 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-08-28 Joern Rennecke + + * genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED + to OP parmeter of generated function. + 2018-08-28 MCC CS PR tree-optimization/87009 diff --git a/gcc/genpreds.c b/gcc/genpreds.c index e0892ffa572..bb294849504 100644 --- a/gcc/genpreds.c +++ b/gcc/genpreds.c @@ -152,7 +152,7 @@ write_predicate_subfunction (struct pred_data *p) p->exp = and_exp; printf ("static inline int\n" - "%s_1 (rtx op, machine_mode mode ATTRIBUTE_UNUSED)\n", + "%s_1 (rtx op ATTRIBUTE_UNUSED, machine_mode mode ATTRIBUTE_UNUSED)\n", p->name); rtx_reader_ptr->print_md_ptr_loc (p->c_block); if (p->c_block[0] == '{') -- 2.30.2