In metaconfig.git, the branch master has been updated <http://perl5.git.perl.org/metaconfig.git/commitdiff/77c2680569463db30f6f345116c033112495ccc8?hp=b91d7c3ef5946a9ee51f4860418cf16c6b459a6b>
- Log ----------------------------------------------------------------- commit 77c2680569463db30f6f345116c033112495ccc8 Author: H.Merijn Brand <[email protected]> Date: Wed Jun 23 16:30:29 2010 +0200 [PATCH] Fix d_u32align probe on ARM From: Marc Pignat <[email protected]> Date: Wed, 23 Jun 2010 15:38:37 +0200 My proposed solution is to use the 'volatile' keyword to make sure the compiler will really do the job. Please note that it does not work with -O3, but the configure script compile with -O2, so this should be fine. At this time I've only tested the Configure scripts, which now detects the align problem on ARM. I'm compiling the whole thing to check if the md5 bug goes away! I hope this will fix this *5 years* old bug, and the upstream bug as well! Signed-off-by: H.Merijn Brand <[email protected]> ----------------------------------------------------------------------- Summary of changes: U/perl/d_u32align.U | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/U/perl/d_u32align.U b/U/perl/d_u32align.U index c55562b..4ab6be8 100644 --- a/U/perl/d_u32align.U +++ b/U/perl/d_u32align.U @@ -45,8 +45,8 @@ $signal_t bletch(int s) { exit(4); } #endif int main() { #if BYTEORDER == 0x1234 || BYTEORDER == 0x4321 - U8 buf[8]; - U32 *up; + volatile U8 buf[8]; + volatile U32 *up; int i; if (sizeof(U32) != 4) { -- perl5 metaconfig repository
