+2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
+
+ * builtins.c (fold_builtin_fabs): Remove constant handling.
+ (fold_builtin_abs): Likewise.
+
2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
* builtins.c (fold_builtin_copysign): Delete.
return NULL_TREE;
arg = fold_convert_loc (loc, type, arg);
- if (TREE_CODE (arg) == REAL_CST)
- return fold_abs_const (arg, type);
return fold_build1_loc (loc, ABS_EXPR, type, arg);
}
return NULL_TREE;
arg = fold_convert_loc (loc, type, arg);
- if (TREE_CODE (arg) == INTEGER_CST)
- return fold_abs_const (arg, type);
return fold_build1_loc (loc, ABS_EXPR, type, arg);
}