On Sep 07 2009, Cyril Brulebois wrote: > | -pedantic-errors -Werror -Wall -Wfatal-errors -Wwrite-strings -O2
The problem is with pedantic. It can be a good thing to use "-ansi -pedantic" while compiling alpha/very rough development versions, so that the compiler keep you on your place if: * you're programming by trial-and-error :) * you're aiming at, say, C89. OTOH, it is not such a good idea to turn it on for production code, since the compiler may disable some intrinsics (functions of which it has "a deep understanding", especially regarding the scheduling and register uses) which may lead to slower code. See, for instance: http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Other-Builtins.html#Other-Builtins Regards, Rogério Brito. P.S.: Actually, my post is not entirely accurate, but this is the gist of the idea. -- Rogério Brito : rbr...@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8 http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

