Subject: egcs -fschedule-insns bug? (lib/9613 related)
To: None <tech-toolchain@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-toolchain
Date: 04/09/2000 20:29:56
Today I tracked down lib/9613 (strtoull(3) returns wrong value on arm32).
http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=9613
The problem occurs when libc/stdlib/strtoull.c is compiled
with -O2 but does not appear with "-O2 -fno-schedule-insns",
so I think it is caused by egcs optimization bug.
I check egcs cvsweb and the following diff fixes this problem:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/Attic/sched.c.diff?r1=1.25&r2=1.27
I'm not sure this fix is appropriate, but does anyone have
objections to commit this?
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp