[parisc-linux] spinlock align code triggering bug in gcc?

Randolph Chung randolph at tausq.org
Sun Mar 28 16:36:37 MST 2004


> I think this is a coding problem.

that's what i thought too initially, but there are no special things 
in the structure that makes it unaligned. pls take a look at the test 
program i attached... the structure only has a spinlock, an int and a 
pointer.  where the heck does it get 183 from (or 23 in the test 
program)? :) i'm guessing it inlined the __ldcw_align() and did some 
constant folding to do the alignment and then the offset becomes wrong?

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


More information about the parisc-linux mailing list