From: Kenneth Johansson Date: Fri, 24 Jul 2009 18:40:26 +0200 Subject: [U-Boot] [PATCH] dlmalloc: Ignore gcc4.4 compiler warnings In-Reply-To: <20090723190647.7EB9D832E416@gemini.denx.de> References: <1247495041-8605-1-git-send-email-galak@kernel.crashing.org> <1247495041-8605-2-git-send-email-galak@kernel.crashing.org> <1247495041-8605-3-git-send-email-galak@kernel.crashing.org> <20090723190647.7EB9D832E416@gemini.denx.de> Message-ID: <1248453626.8967.27.camel@localhost.localdomain> 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, 2009-07-23 at 21:06 +0200, Wolfgang Denk wrote: > Dear Kumar Gala, > > In message <1247495041-8605-3-git-send-email-galak@kernel.crashing.org> you wrote: > > 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 > > Well, if you think fixing the problems is "paper taping over the > issue", then how do you call NOT fixing the problems and shutting off > the warnings? Well he removed the optimization so the problem is no longer a problem. It's the description of what was done that is wrong.