genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED to OP parmeter...
authorJoern Rennecke <joern.rennecke@riscy-ip.com>
Tue, 28 Aug 2018 21:54:44 +0000 (21:54 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Tue, 28 Aug 2018 21:54:44 +0000 (22:54 +0100)
        * genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED
        to OP parmeter of generated function.

From-SVN: r263934

gcc/ChangeLog
gcc/genpreds.c

index 3dbee469a2bdec0472a694fe4257d8e142410bb5..bd3ad1c4927529571a350e0cf9b9bc63e9940d2d 100644 (file)
@@ -1,3 +1,8 @@
+2018-08-28  Joern Rennecke  <joern.rennecke@riscy-ip.com>
+
+       * genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED
+       to OP parmeter of generated function.
+
 2018-08-28 MCC CS <deswurstes@users.noreply.github.com>
 
        PR tree-optimization/87009
index e0892ffa5724ac120d3c4c6242ff093ac1a42d1f..bb2948495042d5816653a19ed441f78de36ced5c 100644 (file)
@@ -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] == '{')