This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[PATCH] Fix d_u32align probe on ARM
authorH.Merijn Brand <merijn@nb09.procura.nl>
Wed, 23 Jun 2010 14:30:29 +0000 (16:30 +0200)
committerH.Merijn Brand <merijn@nb09.procura.nl>
Wed, 23 Jun 2010 14:30:29 +0000 (16:30 +0200)
commit5ccb2b6bd3db017fa01ef4e10f892eb45178f9a6
tree253f88ad7e83b3b6f7cf2dd56e42dbce01f82f73
parentb9dbaa5c4695ebb3006d088206ff8a6cb05bb80e
[PATCH] Fix d_u32align probe on ARM

From: Marc Pignat <marc@pignat.org>
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 <merijn@nb09.procura.nl>
U/perl/d_u32align.U