This is very valuable input, but I'm not sure that this is the same
problem.

Consider the attached test program. I'm not sure how sensible it is, but
it shows at least two current problems. Its output, with the gcc 4.4
build chain on my disk, is :

pavilion: {233} arm-mingw32ce-gcc -o float-n2.exe float.c
-Wstrict-aliasing=2
pavilion: {234} rcp float-n2.exe ipaq:/temp
pavilion: {235} rsh ipaq /temp/float-n2.exe
Foo 34 12.000000 67
 12 * 3 -> 0.000000
 36 -> 0.000000
 36 d -> 36.000000
pavilion: {236} 

The difference between the last two printf statements points out, I
think, that a problem exists around printf. Might be float to double
conversion.

The difference between the second and fourth printf statements points
out that a problem exists in arithmetic. (dd and ddd should be equal.)

I'm not sure how the latter problem could be affected by the patches you
point to. Until I know the cause of the first problem, I can't tell
whether it should or should not be affected by the patch.

Help !?

        Danny

BTW I think I applied the mingw patch locally before running all this.

On Sun, 2009-07-19 at 13:54 +0200, Vincent R. wrote:
> Here is the patchtracker reference : 
> 
> http://sourceforge.net/tracker/?func=detail&aid=2813569&group_id=2435&atid=302435
> 
> 
> and the patch
> http://sourceforge.net/tracker/download.php?group_id=2435&atid=302435&file_id=332699&aid=2813569
> 
> It will be easier than looking at svn changelog...

-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
#include <stdio.h>
#include <windows.h>

main(int argc, char *argv[])
{
	double	d = 12.0;
	double	dd = d * 3.0;
	double	ddd = 36.0;
	float	fd = 36.0;

	printf("Foo %d %f %d\n", 34, d, 67);
	printf(" 12 * 3 -> %f\n", dd);
	printf(" 36 -> %f\n", fd);
	printf(" 36 d -> %f\n", ddd);
	exit (0);
}
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to