Re: [C PATCH] Use VAR_OR_FUNCTION_DECL_P

2015-05-20 Thread Jakub Jelinek
On Wed, May 20, 2015 at 12:01:21PM +0200, Marek Polacek wrote: > The following patch is an effort to use the macro where appropriate > in c/ and c-family/ directories. No functional changes intended. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? > > 2015-05-20 Marek Polacek > >

[C PATCH] Use VAR_OR_FUNCTION_DECL_P

2015-05-20 Thread Marek Polacek
The following patch is an effort to use the macro where appropriate in c/ and c-family/ directories. No functional changes intended. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2015-05-20 Marek Polacek * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout. * c-common.

C++ PATCH: use VAR_OR_FUNCTION_DECL_P more often

2013-03-26 Thread Gabriel Dos Reis
The C++ front-end isn't very systematic in using existing predicates to test node kinds. This patch makes us use VAR_OR_FUNCTION_DECL_P in places where we were explicitly testing VAR_DECL || FUNCTION_DECL. Tested on an x86_64-suse-linux. Applying to trunk as obvious. -- Gaby 2013-03-26 Gabrie