This is the mail archive of the gcc-bugs@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]

[Bug other/12081] Gcc can't be compiled with -mregparm=3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12081

--- Comment #30 from Michael Meissner <meissner at linux dot vnet.ibm.com> ---
On Wed, Aug 07, 2013 at 07:22:32PM +0000, olegendo at gcc dot gnu.org wrote:
> 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.

Great, thanks.  I was just starting the build process to verify it.

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