Re: C++ PATCH to use VAR_P

2015-06-26 Thread Jason Merrill
OK. Jason

C++ PATCH to use VAR_P

2015-06-26 Thread Marek Polacek
Since Gaby's cleanup in 2013 many uses of TREE_CODE (decl) == VAR_DECL have crept back in. This is another cleanup in this area. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2015-06-26 Marek Polacek * call.c (set_up_extended_ref_temp): Use VAR_P. * class.c: Use VAR_P

Re: C PATCH to use VAR_P

2015-06-24 Thread Jeff Law
On 06/24/2015 06:45 AM, Marek Polacek wrote: On Wed, Jun 24, 2015 at 02:37:30PM +0200, Uros Bizjak wrote: Hello! Similarly to what Gaby did in 2013 for C++ (), this patch makes the c/ and c-family/ code use VAR_P rather than TREE_CO

Re: C PATCH to use VAR_P

2015-06-24 Thread Jeff Law
On 06/24/2015 06:25 AM, Marek Polacek wrote: Similarly to what Gaby did in 2013 for C++ (), this patch makes the c/ and c-family/ code use VAR_P rather than TREE_CODE (t) == VAR_DECL (This is on top of the previous patch with is_globa

Re: C PATCH to use VAR_P

2015-06-24 Thread Marek Polacek
On Wed, Jun 24, 2015 at 02:37:30PM +0200, Uros Bizjak wrote: > Hello! > > > Similarly to what Gaby did in 2013 for C++ > > (), this patch > > makes the c/ and c-family/ code use VAR_P rather than > > > > TREE_CODE (t) == VAR_DECL > > > >

Re: C PATCH to use VAR_P

2015-06-24 Thread Uros Bizjak
Hello! > Similarly to what Gaby did in 2013 for C++ > (), this patch > makes the c/ and c-family/ code use VAR_P rather than > > TREE_CODE (t) == VAR_DECL > > (This is on top of the previous patch with is_global_var.) You could also use

C PATCH to use VAR_P

2015-06-24 Thread Marek Polacek
Similarly to what Gaby did in 2013 for C++ (), this patch makes the c/ and c-family/ code use VAR_P rather than TREE_CODE (t) == VAR_DECL (This is on top of the previous patch with is_global_var.) Bootstrapped/regtested on x86_64-linux,