]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
Makefile:Add GCC flag -fno-delete-null-pointer-checks
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Thu, 2 Jul 2015 06:30:17 +0000 (12:00 +0530)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:47:38 +0000 (00:47 +0200)
commit2e62952f5007a953e3300a470e9ec8c1eed4efd1
treee10af05542e6fb6f3976acac35bda85dc9343162
parentfe22a62577cda9acf468bb540d5e72a9cc22ca32
Makefile:Add GCC flag -fno-delete-null-pointer-checks

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