This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix illegal cast to rtx (*insn_gen_fn) (rtx, ...)
- From: Richard Henderson <rth at redhat dot com>
- To: Oleg Endo <oleg dot endo at t-online dot de>
- Cc: Uros Bizjak <ubizjak at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Stefan Kristiansson <stefan dot kristiansson at saunalahti dot fi>, Andreas Schwab <schwab at linux-m68k dot org>
- Date: Mon, 05 Aug 2013 11:42:55 -1000
- Subject: Re: [PATCH] Fix illegal cast to rtx (*insn_gen_fn) (rtx, ...)
- References: <CAFULd4a48kfeg5pJfBYx4ejnKBedUQvWj_-wYEVhBCGPL2uL5A at mail dot gmail dot com> <1374929541 dot 2368 dot 76 dot camel at yam-132-YW-E178-FTW>
On 07/27/2013 02:52 AM, Oleg Endo wrote:
> gcc/ChangeLog:
> * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with
> new class insn_gen_fn.
> * expr.c (move_by_pieces_1, store_by_pieces_2): Replace
> argument rtx (*) (rtx, ...) with insn_gen_fn.
> * genoutput.c (output_insn_data): Cast gen_? function pointers
> to insn_gen_fn::stored_funcptr. Add initializer braces.
Ok.
r~