2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
+ * builtins.def (BUILT_IN_LABS, BUILT_IN_LLABS, BUILT_IN_IMAXABS):
+ Don't define.
+ * builtins.c (expand_builtin): Don't handle BUILT_IN_LABS,
+ BUILT_IN_LLABS and BUILT_IN_IMAXABS.
+ * c-common.c (c_common_nodes_and_builtins): Use BUILT_IN_ABS for
+ builtin labs, llabs and imaxabs.
+ (expand_tree_builtin): Don't handle BUILT_IN_LABS, BUILT_IN_LLABS
+ and BUILT_IN_IMAXABS.
+
+2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
+
* c-common.c (builtin_function_2): New function.
(c_common_nodes_and_builtins): Use it to define each pair (foo,
__builtin_foo) of builtins in one place.
DEF_BUILTIN(BUILT_IN_ALLOCA)
DEF_BUILTIN(BUILT_IN_ABS)
DEF_BUILTIN(BUILT_IN_FABS)
-DEF_BUILTIN(BUILT_IN_LABS)
-DEF_BUILTIN(BUILT_IN_LLABS)
-DEF_BUILTIN(BUILT_IN_IMAXABS)
DEF_BUILTIN(BUILT_IN_FFS)
DEF_BUILTIN(BUILT_IN_DIV)
DEF_BUILTIN(BUILT_IN_LDIV)
BUILT_IN_FABS, BUILT_IN_NORMAL, 0, 0, 0);
builtin_function_2 ("__builtin_labs", "labs",
long_ftype_long, long_ftype_long,
- BUILT_IN_LABS, BUILT_IN_NORMAL, 0, 0, 0);
+ BUILT_IN_ABS, BUILT_IN_NORMAL, 0, 0, 0);
builtin_function_2 ("__builtin_llabs", "llabs",
longlong_ftype_longlong, longlong_ftype_longlong,
- BUILT_IN_LLABS, BUILT_IN_NORMAL, 0, !flag_isoc99, 0);
+ BUILT_IN_ABS, BUILT_IN_NORMAL, 0, !flag_isoc99, 0);
builtin_function_2 ("__builtin_imaxabs", "imaxabs",
intmax_ftype_intmax, intmax_ftype_intmax,
- BUILT_IN_IMAXABS, BUILT_IN_NORMAL, 0, !flag_isoc99, 0);
+ BUILT_IN_ABS, BUILT_IN_NORMAL, 0, !flag_isoc99, 0);
builtin_function ("__builtin_saveregs", ptr_ftype, BUILT_IN_SAVEREGS,
BUILT_IN_NORMAL, NULL_PTR);
switch (DECL_FUNCTION_CODE (function))
{
case BUILT_IN_ABS:
- case BUILT_IN_LABS:
- case BUILT_IN_LLABS:
- case BUILT_IN_IMAXABS:
case BUILT_IN_FABS:
if (coerced_params == 0)
return integer_zero_node;