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

2005-09-09 Thread Wesley W. Terpstra
retitle 327351 libc rounding is broken on HPPAreassign  327351 libc6tags 327351 +patchthanksOn Sep 9, 2005, at 3:25 PM, Wesley W. Terpstra wrote: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));  s

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

2005-09-09 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]: > retitle 327351 libc rounding is broken on HPPA Bug#327351: gcc-4.0: Gcc miscompiles libc on hppa - breaks rounding Changed Bug title. > reassign 327351 libc6 Bug#327351: libc rounding is broken on HPPA Bug reassigned from package `gcc-4.0'

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

2005-09-09 Thread Wesley W. Terpstra
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 readi

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

2005-09-09 Thread Falk Hueffner
"Wesley W. Terpstra" <[EMAIL PROTECTED]> writes: > Package: gcc-4.0 > Version: 4.0.1-6 > Severity: important > > When compiling the fesetround function (which controls the processor > rounding mode), gcc-4.0 incorrectly optimizes away the code!!! > > Here's the C code in question: > __asm__ ("fs

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

2005-09-09 Thread Wesley W. Terpstra
Package: gcc-4.0 Version: 4.0.1-6 Severity: important When compiling the fesetround function (which controls the processor rounding mode), gcc-4.0 incorrectly optimizes away the code!!! Here's the C code in question: __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); sw[0] &= ~FE_DOWNWARD;