* 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
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.
}
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)
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 **);
#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
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,
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. */