|
From: Florian K. <fl...@ei...> - 2015-09-14 08:25:25
|
Hi Mark,
>> I did not do anything about the
>> cast-align warnings as that is a warning specific to your compile
>> environment (stock valgrind does not compile with -Wcast-align).
>
> Are you sure?
no :)
> Makefile.all.am adds -Wcast-align to AM_CFLAGS_BASE.
Right you are. I had incorrectly concluded from the absence of any
cast-align warnings on other platforms, that you had somehow added that
option. But as gcc docs point out:
'-Wcast-align'
Warn whenever a pointer is cast such that the required alignment of
the target is increased. For example, warn if a 'char *' is cast
to an 'int *' on machines where integers can only be accessed at
two- or four-byte boundaries.
So the warning is machine dependent.
>From this page
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka15414.html
I gather that unaligned access is OK for ARMv6 and newer.
http://valgrind.org/info/platforms.html says we support ARMv7 so we
should be OK and can ignore those warnings. Perhaps your arm build was
on something older ?
Florian
|