------- Comment #3 from rth at gcc dot gnu dot org 2008-10-01 23:19 ------- Created an attachment (id=16446) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16446&action=view) proposed patch
Please try this and see if it works. I believe it does, since I see - stw 21,16(9) - addis 21,1,0x8 [lots of code] + stw 21,16(9) + addis 21,1,0x8 which suggests that the memory store hasn't been promoted above where it ought. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37447