--- Additional Comments From rguenth at gcc dot gnu dot org 2005-09-09
10:31 ---
As this _only_ happens with -O1 -g1 (not -O2 -g1, nor -O1 -g) this is surely not
critical (anymore anyways). Re-confirmed on 3.4.4 though. Also this is likely
not to be fixed.
--
What|Remo
Package: g++-4.0
Version: 4.0.1-6
Severity: important
When I compile the following file (definitions.cc):
template < class ELM_T > class b_array
{
public:
b_array() {}
};
template < class ELM_T > class bc_array: public b_array< ELM_T >
{
public:
bc_array() {}
protected:
static ELM_T
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;
Here's a small test-case:
#include
#include
#include
int cvt(float f) { return (int)rint(f); }
int main() {
printf("%d %d %d %d\n", cvt(23.7), cvt(23.23), cvt(-23.7),
cvt(-23.23));
fesetround(FE_TONEAREST);
printf("%d %d %d %d\n", cvt(23.7), cvt(23.23), cvt(-23.7),
"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
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
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' to `libc6'.
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
Package: libgcj6-dev
Version: 4.0.1-2
Severity: normal
Hello,
When I compile a java program with gcj-4.0, and I link the resulting
object code with --static, the resulting large static executable fails
to execute with the following exception:
Exception in thread "main" java.lang.ExceptionInIniti
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-10
03:17 ---
I think the front-end is not remarking the INTEGER_CST's TREE_OVERFLOW to be
zero.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22551
--- You are receiving this mail because: ---
You are on t
10 matches
Mail list logo