This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fabs(0.0) < 0 optimization not working on gcc-3.3 on sh4?


I'm just now getting into testing gcc cross-compilers.
I have a shiny new build-and-test script (http://kegel.com/crosstool),
and am trying to analyze the failures it finds.

I ran gcc-3.3's c-torture/execute test suite last night
on sh4, and the only failures were:

Running target sh4-unknown-linux-gnu
FAIL: gcc.c-torture/execute/20020720-1.c compilation,  -O1
UNRESOLVED: gcc.c-torture/execute/20020720-1.c execution,  -O1
FAIL: gcc.c-torture/execute/20020720-1.c compilation,  -O2
UNRESOLVED: gcc.c-torture/execute/20020720-1.c execution,  -O2
FAIL: gcc.c-torture/execute/20020720-1.c compilation,  -O3 -fomit-frame-pointer
UNRESOLVED: gcc.c-torture/execute/20020720-1.c execution,  -O3 -fomit-frame-pointer
FAIL: gcc.c-torture/execute/20020720-1.c compilation,  -O3 -g
UNRESOLVED: gcc.c-torture/execute/20020720-1.c execution,  -O3 -g
FAIL: gcc.c-torture/execute/20020720-1.c compilation,  -Os
UNRESOLVED: gcc.c-torture/execute/20020720-1.c execution,  -Os

Looks like fabs(0.0) < 0 isn't recognized by the optimizer
as false at compile time on sh4...

anyone run into this before?  I guess it's not a horrible problem,
but I'm curious whether it's been fixed, and where one goes
to ask about things like this.  There's nothing in bugzilla;
should I file a bug there?
- Dan

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]