On Sep 9, 2005, at 3:11 PM, Falk Hueffner wrote:
"Wesley W. Terpstra" <[EMAIL PROTECTED]> writes:
  __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw));
  sw[0] &= ~FE_DOWNWARD;
  sw[0] |= round;
  __asm__ ("fldd 0(%0),%%fr0" : : "r" (sw));

This is not a bug in gcc. The second asm is not marked as reading *sw,
so the store can be moved behind it, or omitted if it isn't needed
elsewhere. If you access *sw, you need to tell gcc. So the bug is in
whatever code contains this asm.

I don't know how the __asm__ directive works... "r" isn't for read?
What exactly are you saying should be changed to fix it?

This code is from libc, so if I can verify what you say, I'll reassign the bug.

Reply via email to