[U-Boot] [U-Boot, v2] Makefile:Add GCC flag -fno-delete-null-pointer-checks

Tom Rini trini at konsulko.com
Fri Jul 10 14:57:09 CEST 2015


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 <rohitarulraj at freescale.com>
> Signed-off-by: Prabhakar Kushwaha <prabhakar at freescale.com>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20150710/a36809b0/attachment.sig>


More information about the U-Boot mailing list