Red Hat Bugzilla – Bug 55698
floating point in ecos on i386 system
Last modified: 2007-04-18 12:38:02 EDT
Description of Problem:
I have a problem using floats in a ecos prg. see the prg.
I use a downloaded floppy image to boot the pc. If i config my tree, where
i build the samples against, with the following lines i have the problem:
if i manualy disable the CYGHWR_HAL_I386_FPU_SWITCH_LAZY (user_value 0)
the program works fine.
strcpy (s,"Rini van Zetten");
printf("Hello, eCos world!, f= %f\n",f);
before the line f=0.2; the value of s is of course "Rini van Zetten" but
after that line the first 4 chars are changed.
Also if i comment out the char part the program crashes on the printf
Version-Release number of selected component (if applicable):
dowloaded from cvs last week of october
Steps to Reproduce:
the problem is solved but in the email list Jonathan Larmour asked me to
report it as a bug.
This bug has moved to http://bugs.ecos.sourceware.org/show_bug.cgi?id=55698