From: Mike Frysinger Date: Thu, 14 Oct 2010 13:52:56 -0400 Subject: [U-Boot] [PATCHv2] dlmalloc.c: Fix gcc alias warning In-Reply-To: <1287039094-13282-1-git-send-email-Joakim.Tjernlund@transmode.se> References: <1287038480-11338-1-git-send-email-Joakim.Tjernlund@transmode.se> <1287039094-13282-1-git-send-email-Joakim.Tjernlund@transmode.se> Message-ID: <201010141352.56797.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday, October 14, 2010 02:51:34 Joakim Tjernlund wrote: > Fix these warnings: > dlmalloc.c: In function 'free': > dlmalloc.c:2507: warning: dereferencing pointer '({anonymous})' does break > strict-aliasing rules dlmalloc.c:2507: warning: dereferencing pointer > '({anonymous})' does break strict-aliasing rules dlmalloc.c:2507: warning: > dereferencing pointer '({anonymous})' does break strict-aliasing rules > > Some > page(http://blog.worldofcoding.com/2010/02/solving-gcc-44-strict-aliasing- > problems.html) suggests adding __attribute__((__may_alias__)). Doing so > makes the warnings go away. thanks ... i think this is a good stop-gap workaround Acked-by: Mike Frysinger -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20101014/695f94fd/attachment.pgp