Partially disabling -fno-builtin
Etienne LORRAIN
etienne_lorrain@yahoo.fr
Tue Nov 30 23:39:00 GMT 1999
Maarten de Jong wrote:
> I figured it could be caused by the fact that gcc uses its own
> code for common functions (in my case, sqrt() and fabs()). You
> can disable this 'inlining' by supplying gcc with the -fno-builtin
> option---but that also affects other functions which can be
> replaced by built-in equivalents. Can I select which functions
> should be *not* be replaced by built-in code without invoking
> -fno-builtin?
In C, I would do that by two "#define" in all the software,
because builtin function are never really declared:
Put in bltin.h:
#define sqrt my_sqrt
#define fabs my_fabs
And compile with:
gcc --include bltin.h -02 ...
Just my Euro 0.002,
Etienne.
___________________________________________________________
Do You Yahoo!?
Achetez, vendez! ÃÂ votre prix! Sur http://encheres.yahoo.fr
More information about the Gcc-bugs
mailing list