On Tue, May 28, 2013 at 04:49:48PM +0200, Peter Bex wrote:
> On Tue, May 28, 2013 at 02:25:09PM +0000, John Long wrote:
> > Hi Christian,
> > 
> > Here's the part of the test that crashed. If you need the prior stuff just
> > let me know, I didn't want to post too hugely to the list!
> > 
> > Error: (library-tests.scm:210) assertion failed: (= (sin 42.0) (fpsin 42.0))
> 
> fpsin expands pretty much to a direct call to the C sin() function, while
> sin is wrapped in a function.
> 
> It could be that your compiler is performing some optimization which causes
> this value to be (slightly?) different.

It sounds like you nailed it. The tests run fine at -Os but fail at -O2 and
-O3.

> If it's possible, could you try it on a different version of your C
> compiler (or another C compiler entirely), and/or tell us your compiler's
> version?

It's vanilla gcc 4.7.1.

I'm ok for now but I would like it to work at least at -O2. Seems like gcc
(almost) always works at -O2!

/jl

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to