summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-23 00:51:20 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-23 00:51:20 +0000
commit1e7b13d6186075af732fcb748fa0d470b34b0d91 (patch)
treeb0aa146596a6e66f3917f91b3378fc654c916455
parent0d4238dcb5a991113acfe4678cf6c7c66cfe1160 (diff)
downloadppe42-gcc-1e7b13d6186075af732fcb748fa0d470b34b0d91.tar.gz
ppe42-gcc-1e7b13d6186075af732fcb748fa0d470b34b0d91.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38475 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/builtins.c3
-rw-r--r--gcc/builtins.def3
-rw-r--r--gcc/c-common.c9
4 files changed, 14 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 032125bd9b5..4ceadbd08f5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,16 @@
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.
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 3d746814298..1d234aa09a5 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -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 ();
diff --git a/gcc/builtins.def b/gcc/builtins.def
index fba269b5c5e..6b58f0d7081 100644
--- a/gcc/builtins.def
+++ b/gcc/builtins.def
@@ -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)
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 3e1c0df48af..637accf4b72 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -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;
OpenPOWER on IntegriCloud