This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH v2] Refactor to avoid nonnull checks on "this" pointer.
- From: Peter Foley <pefoley2 at pefoley dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 1 Apr 2016 09:34:00 -0400
- Subject: Re: [PATCH v2] Refactor to avoid nonnull checks on "this" pointer.
- Authentication-results: sourceware.org; auth=none
- References: <1459441102-19941-1-git-send-email-pefoley2 at pefoley dot com> <20160401121318 dot GA16660 at calimero dot vinschen dot de> <56FE73D7 dot 8030306 at cygwin dot com>
On Fri, Apr 1, 2016 at 9:12 AM, Yaakov Selkowitz <yselkowitz@cygwin.com> wrote:
> See https://gcc.gnu.org/gcc-6/porting_to.html, section named "Optimizations
> remove null pointer checks for this".
If there's an better way to do this, I'm all ears.
However, it seems to come down to either making these methods static
or passing -fno-delete-null-pointer-checks unconditionally once gcc
6.0 becomes stable.
Thanks,
Peter