This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libcpp] append "evaluates to 0" for Wundef diagnostic
- From: Prathamesh Kulkarni <prathamesh dot kulkarni at linaro dot org>
- To: David Malcolm <dmalcolm at redhat dot com>
- Cc: gcc Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 19 Aug 2016 18:48:36 +0530
- Subject: Re: [libcpp] append "evaluates to 0" for Wundef diagnostic
- Authentication-results: sourceware.org; auth=none
- References: <CAAgBjMkLi3+G+B7oass51rfUmPm+BLdbXGRV=aKGrYTvDr+zXA@mail.gmail.com> <1471611591.24300.10.camel@redhat.com>
On 19 August 2016 at 18:29, David Malcolm <dmalcolm@redhat.com> wrote:
> On Fri, 2016-08-19 at 14:15 +0530, Prathamesh Kulkarni wrote:
>> Hi David,
>> This trivial patch appends "evaluates to 0", in Wundef diagnostic,
>> similar to clang, which prints the following diagnostic for undefined
>> macro:
>> undef.c:1:5: warning: 'FOO' is not defined, evaluates to 0 [-Wundef]
>> #if FOO
>> ^
>> Bootstrapped+tested on x86_64-unknown-linux-gnu.
>> OK to commit ?
>
> Nice tweak; LGTM.
Thanks, committed as r239609.
Regards,
Prathamesh
>
> Thanks
> Dave