Danny Backx wrote:
> Apparently the compiler on my system has hickups. I hadn't reinstalled a
> fresh cegcc.dll for a looong time; apparently I didn't do a full rebuild
> + reinstall since the last upgrade of my Linux system.
>
> The compiler doesn't appear to cope well with the default compiler
> options (I've seen -O2 -O) in the newlib build. Rebuilding some of the
> directories without those fixes the problem.
>
> The problem turned out to be somewhere in the stdio functions in newlib
> (just after vfprintf calling fstat).
>   

If your system gcc mis-compiles something, you most probably can 
reproduce it
systematically.  You can try building everything with -O2, and then the 
few files you
suspect are broken with -O0 or with a different version of gcc.  Try adding
-Wall -Wextra to CFLAGS when building those files, and you may
find that we may be doing something that is undefined (C wise), and gcc is
taking advantage of that when optimizing.

Cheers,
Pedro Alves



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to