This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Avoid warning for write_predicate_subfunction generated function


Joern Wolfgang Rennecke <joern.rennecke@riscy-ip.com> writes:
> 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.

OK, thanks.

Richard

> Index: genpreds.c
> ===================================================================
> --- genpreds.c	(revision 5271)
> +++ genpreds.c	(working copy)
> @@ -152,7 +152,7 @@ write_predicate_subfunction (struct pred
>    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] == '{')


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]