bug-gnu-arch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnu-arch] [bug #15915] MACHINE_ALIGNMENT miscalculated on PPC32


From: Andy Tai
Subject: [Bug-gnu-arch] [bug #15915] MACHINE_ALIGNMENT miscalculated on PPC32
Date: Wed, 22 Mar 2006 01:42:53 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060202 Fedora/1.0.7-1.2.fc4 Firefox/1.0.7

Update of bug #15915 (project gnu-arch):

                  Status:                    None => Ready For Test         
           Fixed Release:                         => 1.3.5                  

    _______________________________________________________

Follow-up Comment #4:

fix 
machine/gen-alignment.to-c
in hackerlab

+  
+/* 
+  technique borrowed from 
+
+ Computing Memory Alignment Restrictions
+     of Data Types in C and C++
+          by Tom Lokovic
+
+http://www.monkeyspeak.com/alignment/
 
+*/
 #undef TYPE
 #define TYPE(SCALAR, STRUCT) \
-  this = gcd(sizeof (SCALAR), sizeof (struct flux__align_ ## STRUCT)); \
+  this = ((sizeof(struct_ ## STRUCT) > sizeof(SCALAR)) ? \
+           sizeof(struct_ ## STRUCT) - sizeof(SCALAR) : sizeof(SCALAR)) ;\
   if (this > best) \
     best = this;


ready for test on 32-bit PowerPC.  Who can let me have access to such an
environment?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15915>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]