This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v2] RISC-V: Promote type correctly for libcalls
- From: Kito Cheng <kito dot cheng at sifive dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: Jim Wilson <jimw at sifive dot com>, Jakub Jelinek <jakub at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Kito Cheng <kito dot cheng at gmail dot com>
- Date: Mon, 5 Aug 2019 18:46:07 +0800
- Subject: Re: [PATCH v2] RISC-V: Promote type correctly for libcalls
- References: <1564729885-7984-1-git-send-email-kito.cheng@sifive.com> <CAFyWVab3zXVfRBOwh2QRkvKODPRNZHEVcFvhH4YA=LVZ4VASQw@mail.gmail.com> <CALLt3TgsdwYU5dwGP4GSvJf_GFJtWztswXQmhXtD=9fX0ahQOA@mail.gmail.com> <alpine.LSU.2.20.1908050929110.19626@zhemvz.fhfr.qr>
Committed to gcc-9 as r274108 and gcc-8 as r274113
On Mon, Aug 5, 2019 at 3:29 PM Richard Biener <rguenther@suse.de> wrote:
>
> On Mon, 5 Aug 2019, Kito Cheng wrote:
>
> > Committed as r274107
> >
> > Hi Jakub, Richard:
> >
> > This patch is fix ABI bug for libcall on RISC-V, we've also tested on
> > gcc 8 and 9, it's ok for gcc 9 and 8?
>
> Works for me.
>
> Thanks,
> Richard.
>
> > Thanks.
> >
> > On Fri, Aug 2, 2019 at 11:52 PM Jim Wilson <jimw@sifive.com> wrote:
> > >
> > > On Fri, Aug 2, 2019 at 12:11 AM Kito Cheng <kito.cheng@sifive.com> wrote:
> > > > gcc/ChangeLog
> > > > * config/riscv/riscv.c (riscv_promote_function_mode): New.
> > > > (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
> > > > gcc/testsuite/ChangeLog
> > > > * gcc.target/riscv/promote-type-for-libcall.c: New.
> > >
> > > Thanks. This looks good, and fails with gcc mainline without the patch.
> > >
> > > Jim
> >
>
> --
> Richard Biener <rguenther@suse.de>
> SUSE Linux GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany;
> GF: Felix Imendörffer, Mary Higgins, Sri Rasiah; HRB 21284 (AG Nürnberg)