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

Bug#327351: gcc-4.0: Gcc miscompiles libc on hppa - breaks rounding



"Wesley W. Terpstra" <wesley@terpstra.ca> writes:

> I tried using 
>
>   __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw));
>
>   sw[BYTE] &= ~FE_DOWNWARD;
>
>   sw[BYTE] |= round;
>
>   __asm__ ("fldd 0(%0), %%fr0" : : "r" (sw), "r" (*sw));
>
> ... and it worked.

That's only by chance. gcc still cannot see that you're accessing *sw.


-- 
	Falk



Reply to: