dlmalloc.c: Fix gcc alias warning
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Thu, 14 Oct 2010 06:51:34 +0000 (08:51 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 18 Oct 2010 20:44:31 +0000 (22:44 +0200)
commit1ba91ba23396005ef7b42381cc21f0baf78d0d60
tree9dfb972892fb005aa8aec22fd4a2ad519e32fc1c
parentd1e0b10accdbac2e0a8b2cbf7c589645442f87c5
dlmalloc.c: Fix gcc alias warning

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.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Acked-by: Mike Frysinger <vapier@gentoo.org>
common/dlmalloc.c