Re: [PATCH][riscv] Fix build due to INT16_MAX issue

2017-02-07 Thread Andrew Waterman
Approved. And thanks for the reminder about the MAINTAINERS file. On Tue, Feb 7, 2017 at 2:45 AM, Kyrill Tkachov 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

[PATCH][riscv] Fix build due to INT16_MAX issue

2017-02-07 Thread Kyrill Tkachov
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 succ