This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problem with non-ISO C scalb() builtin
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Sep 2003 20:22:47 +1000 (EST)
- Subject: Problem with non-ISO C scalb() builtin
Since introduction of __builtin_scalb,
http://gcc.gnu.org/ml/gcc-patches/2003-08/msg00309.html
mingw32 gets these warnings with -Wsystem-headers:
./include/math.h:232: warning: conflicting types for built-in function 'scalb'
This is because runtime supplied scalb has prototype:
#ifndef __STRICT_ANSI__
double scalb (double, long); /* same as C99 scalbnl */
#endif
not:
double scalb (double, double);
as in __builtin_scalb
Other targets may have similar problem, since at least some
Berkeley libraries have double scalb (double, int);
Is the best thing to do in this case simply to
make -fno-builtin-scalb the default for mingw32 target?
Is there a way to disable all builtins that do not have ISO C
counterpart?
Danny
http://search.yahoo.com.au - Yahoo! Search
- Looking for more? Try the new Yahoo! Search