Skip to content

Commit f1c7503

Browse files
author
H.Merijn Brand
committed
[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]>
1 parent c457df0 commit f1c7503

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
# $Id: Head.U 6 2006-08-25 22:21:46Z rmanfredi $
3232
#
33-
# Generated on Fri May 21 07:59:07 CEST 2010 [metaconfig 3.5 PL0]
33+
# Generated on Wed Jun 23 16:03:55 CEST 2010 [metaconfig 3.5 PL0]
3434
# (with additional metaconfig patches by [email protected])
3535

3636
cat >c1$$ <<EOF
@@ -18605,8 +18605,8 @@ $signal_t bletch(int s) { exit(4); }
1860518605
#endif
1860618606
int main() {
1860718607
#if BYTEORDER == 0x1234 || BYTEORDER == 0x4321
18608-
U8 buf[8];
18609-
U32 *up;
18608+
volatile U8 buf[8];
18609+
volatile U32 *up;
1861018610
int i;
1861118611

1861218612
if (sizeof(U32) != 4) {

0 commit comments

Comments
 (0)