Re: [libcpp] modify undef diagnostic

2014-05-19 Thread Jeff Law
On 04/29/14 09:28, Prathamesh Kulkarni wrote: Append evaluates to 0, in Wundef diagnostic. clang prints the following diagnostic for -Wundef: undef.c:1:5: warning: 'FOO' is not defined, evaluates to 0 [-Wundef] #if FOO ^ OK to commit ? [libcpp] * expr.c (eval_token): Modify Wundef

[libcpp] modify undef diagnostic

2014-04-29 Thread Prathamesh Kulkarni
Append evaluates to 0, in Wundef diagnostic. clang prints the following diagnostic for -Wundef: undef.c:1:5: warning: 'FOO' is not defined, evaluates to 0 [-Wundef] #if FOO ^ OK to commit ? [libcpp] * expr.c (eval_token): Modify Wundef diagnostic. [gcc/testsuite/gcc.dg/cpp] * warn-undef.c: