]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
targhooks.c (default_builtin_reciprocal): New default target hook.
authorUros Bizjak <ubizjak@gmail.com>
Sat, 16 Jun 2007 18:52:11 +0000 (20:52 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 16 Jun 2007 18:52:11 +0000 (20:52 +0200)
        * 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.

From-SVN: r125758

gcc/ChangeLog
gcc/hooks.c
gcc/hooks.h
gcc/target-def.h
gcc/targhooks.c
gcc/targhooks.h

index f832b77e9a5701f882b9b53987710aba50573e65..1994bf99d428785f7810f01491642cf067d0296e 100644 (file)
@@ -1,3 +1,12 @@
+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
index 4c57a1687ee09f6c432bf1f091cfc47437c5e05a..8c4150e4a88cc71744898a081fbc885170f3c2c5 100644 (file)
@@ -265,13 +265,6 @@ hook_constcharptr_tree_null (tree t ATTRIBUTE_UNUSED)
   return NULL;
 }
 
-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,
index 15efef7ef223dd355adb812cda1ef868a96efa19..02664c12803da9d350c3441b45c686adee371040 100644 (file)
@@ -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 **);
index 8acaa19beadf46862bc074f27c4c3b9966fbef25..bc07f62877871abc5ff276ea0e5ccf03b395e9a0 100644 (file)
@@ -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
index 1f0aa0be33704d4d856d9bbe948616e142add83d..620c7ec7e51ac64a03c39ccde16f962cbbe62017 100644 (file)
@@ -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,
index 97f3eb0ae989c71f3cad3b8cba577d32dfb65bc5..81b0eca3a4e8d2d0f932384869293fc5390c1250 100644 (file)
@@ -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.  */