This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]