builtins.def (BUILT_IN_LABS, [...]): Don't define.

* 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.

From-SVN: r38475
This commit is contained in:
Joseph Myers 2000-12-23 00:51:20 +00:00 committed by Joseph Myers
parent fc2aaf309f
commit 29b5ca410a
4 changed files with 14 additions and 12 deletions

View File

@ -1,3 +1,14 @@
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.

View File

@ -3401,9 +3401,6 @@ expand_builtin (exp, target, subtarget, mode, ignore)
switch (fcode)
{
case BUILT_IN_ABS:
case BUILT_IN_LABS:
case BUILT_IN_LLABS:
case BUILT_IN_IMAXABS:
case BUILT_IN_FABS:
/* build_function_call changes these into ABS_EXPR. */
abort ();

View File

@ -22,9 +22,6 @@ Boston, MA 02111-1307, USA. */
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)

View File

@ -5291,13 +5291,13 @@ c_common_nodes_and_builtins ()
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);
@ -5690,9 +5690,6 @@ expand_tree_builtin (function, params, coerced_params)
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;