+2005-01-11 Roger Sayle <roger@eyesopen.com>
+
+ * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
+ type as args of unprototyped builtins aren't automatically promoted.
+ (fold_builtin_abs): Likewise.
+
2005-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in: Set a `build-warn' variable.
return 0;
arg = TREE_VALUE (arglist);
+ arg = fold_convert (type, arg);
if (TREE_CODE (arg) == REAL_CST)
return fold_abs_const (arg, type);
return fold (build1 (ABS_EXPR, type, arg));
return 0;
arg = TREE_VALUE (arglist);
+ arg = fold_convert (type, arg);
if (TREE_CODE (arg) == INTEGER_CST)
return fold_abs_const (arg, type);
return fold (build1 (ABS_EXPR, type, arg));