[U-Boot] [PATCH] dlmalloc: Ignore gcc4.4 compiler warnings

Kumar Gala galak at kernel.crashing.org
Mon Jul 13 16:24:01 CEST 2009


The version of dlmalloc we are using generates a fair number of warnings
of the following form:

warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules

Trying to fix these is just paper taping over the issue and we really
just need to look into a new malloc implementation.  So we disable these
particular warning checks for dlmalloc.c only.

Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
---
 common/Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/common/Makefile b/common/Makefile
index c8e5d26..5b3490a 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -34,6 +34,7 @@ COBJS-y += console.o
 COBJS-y += command.o
 COBJS-y += devices.o
 COBJS-y += dlmalloc.o
+CFLAGS_dlmalloc.o += -fno-strict-aliasing
 COBJS-y += exports.o
 COBJS-$(CONFIG_SYS_HUSH_PARSER) += hush.o
 COBJS-y += image.o
-- 
1.6.0.6



More information about the U-Boot mailing list