From: Tom Rini Date: Fri, 10 Jul 2015 08:57:09 -0400 Subject: [U-Boot] [U-Boot, v2] Makefile:Add GCC flag -fno-delete-null-pointer-checks In-Reply-To: <1435818617-16147-1-git-send-email-prabhakar@freescale.com> References: <1435818617-16147-1-git-send-email-prabhakar@freescale.com> Message-ID: <20150710125709.GX23886@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jul 02, 2015 at 12:00:17PM +0530, Prabhakar Kushwaha wrote: > -fdelete-null-pointer-checks flag controls global dataflow analyses and > eliminate useless checks for null pointers; It assume that if a pointer is > checked after it has already been dereferenced, it cannot be null. > This flag is enabled by default. > > gcc v4.9 has more optimizations added to this option. Hence it is very > aggressive with GCC v4.9 series. Add -fno-delete-null-pointer-checks to > disable the optimization > > Signed-off-by: Rohit Dharmakan > Signed-off-by: Prabhakar Kushwaha Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: