Re: [PATCH] Warn on and fold NULL checks against inline functions

2014-05-27 Thread Richard Biener
On Tue, May 27, 2014 at 4:06 PM, Patrick Palka wrote: > On Tue, May 27, 2014 at 8:32 AM, Patrick Palka wrote: >> On Tue, May 27, 2014 at 3:33 AM, Richard Biener >> wrote: >>> On Mon, May 26, 2014 at 9:01 PM, Patrick Palka wrote: Hi, This patch teaches the C++ frontend to warn on

Re: [PATCH] Warn on and fold NULL checks against inline functions

2014-05-27 Thread Patrick Palka
On Tue, May 27, 2014 at 8:32 AM, Patrick Palka wrote: > On Tue, May 27, 2014 at 3:33 AM, Richard Biener > wrote: >> On Mon, May 26, 2014 at 9:01 PM, Patrick Palka wrote: >>> Hi, >>> >>> This patch teaches the C++ frontend to warn on NULL checks against >>> inline functions and it teaches the mid

Re: [PATCH] Warn on and fold NULL checks against inline functions

2014-05-27 Thread Patrick Palka
On Tue, May 27, 2014 at 3:33 AM, Richard Biener wrote: > On Mon, May 26, 2014 at 9:01 PM, Patrick Palka wrote: >> Hi, >> >> This patch teaches the C++ frontend to warn on NULL checks against >> inline functions and it teaches the middle-end to fold NULL checks >> against inline functions. These

Re: [PATCH] Warn on and fold NULL checks against inline functions

2014-05-27 Thread Richard Biener
On Mon, May 26, 2014 at 9:01 PM, Patrick Palka wrote: > Hi, > > This patch teaches the C++ frontend to warn on NULL checks against > inline functions and it teaches the middle-end to fold NULL checks > against inline functions. These two things are currently done for > non-inline C++ functions, b

Re: [PATCH] Warn on and fold NULL checks against inline functions

2014-05-26 Thread Marc Glisse
On Mon, 26 May 2014, Patrick Palka wrote: On Mon, May 26, 2014 at 4:26 PM, Marc Glisse wrote: On Mon, 26 May 2014, Patrick Palka wrote: This patch teaches the C++ frontend to warn on NULL checks against inline functions and it teaches the middle-end to fold NULL checks against inline functio

Re: [PATCH] Warn on and fold NULL checks against inline functions

2014-05-26 Thread Patrick Palka
On Mon, May 26, 2014 at 4:26 PM, Marc Glisse wrote: > On Mon, 26 May 2014, Patrick Palka wrote: > >> This patch teaches the C++ frontend to warn on NULL checks against >> inline functions and it teaches the middle-end to fold NULL checks >> against inline functions. These two things are currently

Re: [PATCH] Warn on and fold NULL checks against inline functions

2014-05-26 Thread Marc Glisse
On Mon, 26 May 2014, Patrick Palka wrote: This patch teaches the C++ frontend to warn on NULL checks against inline functions and it teaches the middle-end to fold NULL checks against inline functions. These two things are currently done for non-inline C++ functions, but inline functions are ex

[PATCH] Warn on and fold NULL checks against inline functions

2014-05-26 Thread Patrick Palka
Hi, This patch teaches the C++ frontend to warn on NULL checks against inline functions and it teaches the middle-end to fold NULL checks against inline functions. These two things are currently done for non-inline C++ functions, but inline functions are exceptional in that the C++ frontend marks