aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2007-06-18 10:30:47 +0200
committerUros Bizjak <uros@gcc.gnu.org>2007-06-18 10:30:47 +0200
commitac10986fadc255c27db122daa244f8f71c5462f2 (patch)
treea70a489abddc4e7f99e532e8ae5b8057df6f9b21 /gcc/target.h
parenta8d8890adb3be434ee6eec4f104f322e6c247c5a (diff)
downloadgcc-ac10986fadc255c27db122daa244f8f71c5462f2.zip
gcc-ac10986fadc255c27db122daa244f8f71c5462f2.tar.gz
gcc-ac10986fadc255c27db122daa244f8f71c5462f2.tar.bz2
re PR tree-optimization/32383 (ICE with reciprocals and -ffast-math)
PR tree-optimization/32383 * targhooks.c (default_builtin_reciprocal): Add new bool argument. * targhooks.h (default_builtin_reciprocal): Update prototype. * target.h (struct gcc_target): Update builtin_reciprocal. * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description. * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements where arg1 is not SSA_NAME. Pass true to targetm.builtin_reciprocal when fndecl is in BUILT_IN_MD class. (execute_convert_to_rsqrt): Ditto. * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool argument. Convert IX86_BUILTIN_SQRTPS code only when md_fn is true. Convert BUILT_IN_SQRTF code only when md_fn is false. testsuite/ChangeLog: PR tree-optimization/32383 * testsuite/g++.dg/opt/pr32383.C: New test. From-SVN: r125790
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 2d446a1..7e144de 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -485,7 +485,7 @@ struct gcc_target
/* Returns a code for a target-specific builtin that implements
reciprocal of the function, or NULL_TREE if not available. */
- tree (* builtin_reciprocal) (unsigned, bool);
+ tree (* builtin_reciprocal) (unsigned, bool, bool);
/* For a vendor-specific fundamental TYPE, return a pointer to
a statically-allocated string containing the C++ mangling for