This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][riscv] Fix build due to INT16_MAX issue
- From: Andrew Waterman <andrew at sifive dot com>
- To: Kyrill Tkachov <kyrylo dot tkachov at foss dot arm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Palmer Dabbelt <palmer at dabbelt dot com>
- Date: Tue, 7 Feb 2017 11:52:43 -0800
- Subject: Re: [PATCH][riscv] Fix build due to INT16_MAX issue
- Authentication-results: sourceware.org; auth=none
- References: <5899A52E.1000809@foss.arm.com>
Approved.
And thanks for the reminder about the MAINTAINERS file.
On Tue, Feb 7, 2017 at 2:45 AM, Kyrill Tkachov
<kyrylo.tkachov@foss.arm.com> wrote:
> Hi all,
>
> I tried building a cc1 for riscv-x-elf and I got a build error about
> INT16_MAX not being defined on my system.
> I think it's not a standard macro. This patch fixes that with what I think
> is the equivalent definition using
> GCC modes logic.
>
> With this my build proceeds to build a cc1 successfully. No testing beyond
> that.
>
> Is this ok for trunk?
>
> Thanks,
> Kyrill
>
> P.S. Palmer, Andrew, I didn't see your names and emails in the MAINTAINERS
> file, you should update that when
> you get the chance.
>
>
> 2016-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
>
> * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.