From: Kumar Gala <galak@kernel.crashing.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] dlmalloc: Ignore gcc4.4 compiler warnings
Date: Mon, 13 Jul 2009 09:24:01 -0500 [thread overview]
Message-ID: <1247495041-8605-3-git-send-email-galak@kernel.crashing.org> (raw)
In-Reply-To: <1247495041-8605-2-git-send-email-galak@kernel.crashing.org>
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@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
next prev parent reply other threads:[~2009-07-13 14:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-13 14:23 [U-Boot] [PATCH] drivers/bios_emulator: Fix gcc 4.4 compiler warning Kumar Gala
2009-07-13 14:24 ` [U-Boot] [PATCH] ahci: " Kumar Gala
2009-07-13 14:24 ` Kumar Gala [this message]
2009-07-23 2:05 ` [U-Boot] gcc4.4 warning fix patches Kumar Gala
2009-07-23 19:06 ` [U-Boot] [PATCH] dlmalloc: Ignore gcc4.4 compiler warnings Wolfgang Denk
2009-07-24 16:40 ` Kenneth Johansson
2009-07-26 21:26 ` Wolfgang Denk
2009-07-28 22:52 ` Scott Wood
2009-07-29 5:47 ` Wolfgang Denk
2009-07-29 5:55 ` Kumar Gala
2009-07-29 12:53 ` Kenneth Johansson
2009-08-07 0:14 ` Kumar Gala
2009-07-23 19:05 ` [U-Boot] [PATCH] ahci: Fix gcc 4.4 compiler warning Wolfgang Denk
2009-07-23 19:03 ` [U-Boot] [PATCH] drivers/bios_emulator: " Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1247495041-8605-3-git-send-email-galak@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox