summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-16 18:52:11 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-16 18:52:11 +0000
commitc3cc39c4d91982107943f0e8fec26038cf6641b8 (patch)
treec1464791ad2a64bbc18e95aec05c332b45c31f18 /gcc
parent7d6f49d628f8d236acbd541eb7357fe24dea8ab3 (diff)
downloadgcc-c3cc39c4d91982107943f0e8fec26038cf6641b8.tar.gz
* targhooks.c (default_builtin_reciprocal): New default target hook.
* targhooks.h (default_builtin_reciprocal): Add prototype. * hooks.c (hook_tree_tree_bool_null): Remove hook. * hooks.h (hook_tree_tree_bool_null): Remove prototype. * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as default_builtin_reciprocal. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125758 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/hooks.c7
-rw-r--r--gcc/hooks.h1
-rw-r--r--gcc/target-def.h2
-rw-r--r--gcc/targhooks.c9
-rw-r--r--gcc/targhooks.h5
6 files changed, 23 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f832b77e9a5..1994bf99d42 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,14 @@
2007-06-16 Uros Bizjak <ubizjak@gmail.com>
+ * targhooks.c (default_builtin_reciprocal): New default target hook.
+ * targhooks.h (default_builtin_reciprocal): Add prototype.
+ * hooks.c (hook_tree_tree_bool_null): Remove hook.
+ * hooks.h (hook_tree_tree_bool_null): Remove prototype.
+ * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
+ default_builtin_reciprocal.
+
+2007-06-16 Uros Bizjak <ubizjak@gmail.com>
+
PR middle-end/31723
* hooks.c (hook_tree_tree_bool_null): New hook.
* hooks.h (hook_tree_tree_bool_null): Add prototype.
diff --git a/gcc/hooks.c b/gcc/hooks.c
index 4c57a1687ee..8c4150e4a88 100644
--- a/gcc/hooks.c
+++ b/gcc/hooks.c
@@ -266,13 +266,6 @@ hook_constcharptr_tree_null (tree t ATTRIBUTE_UNUSED)
}
tree
-hook_tree_tree_bool_null (tree t0 ATTRIBUTE_UNUSED,
- bool ignore ATTRIBUTE_UNUSED)
-{
- return NULL;
-}
-
-tree
hook_tree_tree_tree_bool_null (tree t0 ATTRIBUTE_UNUSED,
tree t1 ATTRIBUTE_UNUSED,
bool ignore ATTRIBUTE_UNUSED)
diff --git a/gcc/hooks.h b/gcc/hooks.h
index 15efef7ef22..02664c12803 100644
--- a/gcc/hooks.h
+++ b/gcc/hooks.h
@@ -58,7 +58,6 @@ extern int hook_int_void_no_regs (void);
extern tree hook_tree_tree_tree_null (tree, tree);
extern tree hook_tree_tree_tree_tree_3rd_identity (tree, tree, tree);
-extern tree hook_tree_tree_bool_null (tree, bool);
extern tree hook_tree_tree_tree_bool_null (tree, tree, bool);
extern unsigned hook_uint_uint_constcharptrptr_0 (unsigned, const char **);
diff --git a/gcc/target-def.h b/gcc/target-def.h
index 8acaa19bead..bc07f628778 100644
--- a/gcc/target-def.h
+++ b/gcc/target-def.h
@@ -388,7 +388,7 @@ Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#define TARGET_FOLD_BUILTIN hook_tree_tree_tree_bool_null
/* In tree-ssa-math-opts.c */
-#define TARGET_BUILTIN_RECIPROCAL hook_tree_tree_bool_null
+#define TARGET_BUILTIN_RECIPROCAL default_builtin_reciprocal
/* In varasm.c. */
#ifndef TARGET_SECTION_TYPE_FLAGS
diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index 1f0aa0be337..620c7ec7e51 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -338,6 +338,15 @@ default_builtin_vectorized_conversion (enum tree_code code ATTRIBUTE_UNUSED,
return NULL_TREE;
}
+/* Reciprocal. */
+
+tree
+default_builtin_reciprocal (enum built_in_function fn ATTRIBUTE_UNUSED,
+ bool sqrt ATTRIBUTE_UNUSED)
+{
+ return NULL_TREE;
+}
+
bool
hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false (
CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED,
diff --git a/gcc/targhooks.h b/gcc/targhooks.h
index 97f3eb0ae98..81b0eca3a4e 100644
--- a/gcc/targhooks.h
+++ b/gcc/targhooks.h
@@ -55,10 +55,13 @@ extern bool default_decimal_float_supported_p (void);
extern const char * default_invalid_within_doloop (rtx);
-extern tree default_builtin_vectorized_function (enum built_in_function, tree, tree);
+extern tree default_builtin_vectorized_function
+ (enum built_in_function, tree, tree);
extern tree default_builtin_vectorized_conversion (enum tree_code, tree);
+extern tree default_builtin_reciprocal (enum built_in_function, bool);
+
/* These are here, and not in hooks.[ch], because not all users of
hooks.h include tm.h, and thus we don't have CUMULATIVE_ARGS. */