http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12081
--- Comment #29 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to Uroš Bizjak from comment #28) > (In reply to Michael Meissner from comment #27) > > The patch from Oleg Endo breaks the PowerPC build. > > > > .../gcc/config/rs6000/rs6000.c: In function ‘void > > rs6000_emit_swdiv(rtx_def*, rtx_def*, rtx_def*, bool)’: > > .../gcc/config/rs6000/rs6000.c:28142: error: invalid cast from type ‘const > > insn_gen_fn’ to type ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*)’ > > .../gcc/config/rs6000/rs6000.c: In function ‘void > > rs6000_emit_swrsqrt(rtx_def*, rtx_def*)’: > > .../gcc/config/rs6000/rs6000.c:28220: error: invalid cast from type ‘const > > insn_gen_fn’ to type ‘rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*)’ > > Patch at [1]. > > [1] http://gcc.gnu.org/ml/gcc-patches/2013-08/msg00323.html Fixed on trunk. http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=201580 PR other/12081 config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef. (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN to gen_2arg_fn_t.