aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@gcc.gnu.org>2001-12-14 22:06:35 +0100
committerAndreas Jaeger <aj@gcc.gnu.org>2001-12-14 22:06:35 +0100
commitdc6f415864bad4172aa2b396007cbb4ed2acf949 (patch)
treeb25e70ca2c4733ffdbd56a16ffcfba6bbccfccb2 /gcc
parente10e23ee51716833df9ee4642a72f91eff4ff90a (diff)
downloadgcc-dc6f415864bad4172aa2b396007cbb4ed2acf949.zip
gcc-dc6f415864bad4172aa2b396007cbb4ed2acf949.tar.gz
gcc-dc6f415864bad4172aa2b396007cbb4ed2acf949.tar.bz2
builtins.def: Rename BUILT_IN_FSQRT to BUILT_IN_SQRT and __builtin_fsqrt to __builtin_sqrt.
2001-12-14 Roger Sayle <roger@eyesopen.com> * builtins.def: Rename BUILT_IN_FSQRT to BUILT_IN_SQRT and __builtin_fsqrt to __builtin_sqrt. * builtins.c (expand_builtin_mathfn,expand_builtin): Same. * doc/extend.texi: Simplify documentation to match patch. f: * com-rt.def: Use __builtin_sqrt instead of __builtin_fsqrt. * com.c (ffecom_init_0): Same, and fixed enumeration usage. libstdc++-v3: * acconfig.h: Test for __builtin_sqrt instead of __builtin_fsqrt. * acinclude.m4: Same. * include/c_shadow/bits/std_cmath.h: Same. * aclocal.m4: Regenerated. * config.h.in: Regenerated. * configure: Regenerated. From-SVN: r48008
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/builtins.c6
-rw-r--r--gcc/builtins.def4
-rw-r--r--gcc/doc/extend.texi6
-rw-r--r--gcc/f/ChangeLog9
-rw-r--r--gcc/f/com-rt.def2
-rw-r--r--gcc/f/com.c16
7 files changed, 32 insertions, 21 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 63d2845..09f322a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2001-12-14 Roger Sayle <roger@eyesopen.com>
+
+ * builtins.def: Rename BUILT_IN_FSQRT to BUILT_IN_SQRT and
+ __builtin_fsqrt to __builtin_sqrt.
+
+ * builtins.c (expand_builtin_mathfn,expand_builtin): Same.
+ * doc/extend.texi: Simplify documentation to match patch.
+
Fri Dec 14 21:23:54 CET 2001 Jan Hubicka <jh@suse.cz>
* config.gcc: Revamp target_cpu_default2 to strings;
@@ -137,7 +145,7 @@ Thu Dec 13 20:30:08 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* collect2.c (COLLECT_SHARED_INIT_FUNC)
(COLLECT_SHARD_FINI_FUNC): Define default values.
- (write_c_file_stat): Use them to call construtor and destructor
+ (write_c_file_stat): Use them to call construtor and destructor
functions in shared libraries.
* doc/tm.texi (COLLECT_SHARED_INIT_FUNC)
(COLLECT_SHARD_FINI_FUNC): Document them.
diff --git a/gcc/builtins.c b/gcc/builtins.c
index b6e1994..d006b97 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -1506,7 +1506,7 @@ expand_builtin_mathfn (exp, target, subtarget)
case BUILT_IN_COSF:
case BUILT_IN_COSL:
builtin_optab = cos_optab; break;
- case BUILT_IN_FSQRT:
+ case BUILT_IN_SQRT:
case BUILT_IN_SQRTF:
case BUILT_IN_SQRTL:
builtin_optab = sqrt_optab; break;
@@ -3550,7 +3550,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
{
case BUILT_IN_SIN:
case BUILT_IN_COS:
- case BUILT_IN_FSQRT:
+ case BUILT_IN_SQRT:
case BUILT_IN_SQRTF:
case BUILT_IN_SQRTL:
case BUILT_IN_MEMSET:
@@ -3621,7 +3621,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
because of possible accuracy problems. */
if (! flag_unsafe_math_optimizations)
break;
- case BUILT_IN_FSQRT:
+ case BUILT_IN_SQRT:
case BUILT_IN_SQRTF:
case BUILT_IN_SQRTL:
target = expand_builtin_mathfn (exp, target, subtarget);
diff --git a/gcc/builtins.def b/gcc/builtins.def
index 118f1d5..58d9493 100644
--- a/gcc/builtins.def
+++ b/gcc/builtins.def
@@ -263,8 +263,8 @@ DEF_LIB_BUILTIN(BUILT_IN_STRRCHR,
"__builtin_strrchr",
BT_FN_STRING_CONST_STRING_INT)
-DEF_LIB_BUILTIN(BUILT_IN_FSQRT,
- "__builtin_fsqrt",
+DEF_LIB_BUILTIN(BUILT_IN_SQRT,
+ "__builtin_sqrt",
BT_FN_DOUBLE_DOUBLE)
DEF_LIB_BUILTIN(BUILT_IN_SIN,
"__builtin_sin",
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 9b97805..6413759 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -4400,10 +4400,8 @@ The ISO C89 functions @code{abs}, @code{cos}, @code{fabs},
@code{strpbrk}, @code{strrchr}, @code{strspn}, and @code{strstr} are all
recognized as built-in functions unless @option{-fno-builtin} is
specified (or @option{-fno-builtin-@var{function}} is specified for an
-individual function). All of these functions have
-corresponding versions prefixed
-with @code{__builtin_}, except that the version for @code{sqrt} is
-called @code{__builtin_fsqrt}.
+individual function). All of these functions have corresponding
+versions prefixed with @code{__builtin_}.
GCC provides built-in versions of the ISO C99 floating point comparison
macros that avoid raising exceptions for unordered operands. They have
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog
index e315de7..1e6193a 100644
--- a/gcc/f/ChangeLog
+++ b/gcc/f/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-14 Roger Sayle <roger@eyesopen.com>
+
+ * com-rt.def: Use __builtin_sqrt instead of __builtin_fsqrt.
+ * com.c (ffecom_init_0): Same, and fixed enumeration usage.
+
2001-12-10 Joseph S. Myers <jsm28@cam.ac.uk>
* g77.texi: Don't condition menus on @ifinfo.
@@ -953,7 +958,7 @@ Sun Jun 11 00:03:00 2000 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
* top.c (ffe_decode_option): Update -Wall unused flags by calling
- set_Wunused.
+ set_Wunused.
2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
@@ -1270,7 +1275,7 @@ Sun Sep 12 23:29:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
(g77_newargv): Constify.
(lookup_option, append_arg, lang_specific_driver): Constify a char*.
(lang_specific_driver): All calls to the function pointer
- parameter now explicitly call `fatal'.
+ parameter now explicitly call `fatal'.
Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
diff --git a/gcc/f/com-rt.def b/gcc/f/com-rt.def
index ceda376..43344d9 100644
--- a/gcc/f/com-rt.def
+++ b/gcc/f/com-rt.def
@@ -273,7 +273,7 @@ DEFGFRT (FFECOM_gfrtL_LOG10, "log10", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE, T
DEFGFRT (FFECOM_gfrtL_POW, "pow", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE, TRUE)
DEFGFRT (FFECOM_gfrtL_SIN, "__builtin_sin", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE, TRUE)
DEFGFRT (FFECOM_gfrtL_SINH, "sinh", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE, TRUE)
-DEFGFRT (FFECOM_gfrtL_SQRT, "__builtin_fsqrt", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE, TRUE)
+DEFGFRT (FFECOM_gfrtL_SQRT, "__builtin_sqrt", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE, TRUE)
DEFGFRT (FFECOM_gfrtL_TAN, "tan", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE, TRUE)
DEFGFRT (FFECOM_gfrtL_TANH, "tanh", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE, TRUE)
diff --git a/gcc/f/com.c b/gcc/f/com.c
index 7167b40..982b3f8 100644
--- a/gcc/f/com.c
+++ b/gcc/f/com.c
@@ -11713,23 +11713,23 @@ ffecom_init_0 ()
= build_function_type (void_type_node, NULL_TREE);
builtin_function ("__builtin_sqrtf", float_ftype_float,
- BUILT_IN_FSQRT, BUILT_IN_NORMAL, "sqrtf");
- builtin_function ("__builtin_fsqrt", double_ftype_double,
- BUILT_IN_FSQRT, BUILT_IN_NORMAL, "sqrt");
+ BUILT_IN_SQRTF, BUILT_IN_NORMAL, "sqrtf");
+ builtin_function ("__builtin_sqrt", double_ftype_double,
+ BUILT_IN_SQRT, BUILT_IN_NORMAL, "sqrt");
builtin_function ("__builtin_sqrtl", ldouble_ftype_ldouble,
- BUILT_IN_FSQRT, BUILT_IN_NORMAL, "sqrtl");
+ BUILT_IN_SQRTL, BUILT_IN_NORMAL, "sqrtl");
builtin_function ("__builtin_sinf", float_ftype_float,
- BUILT_IN_SIN, BUILT_IN_NORMAL, "sinf");
+ BUILT_IN_SINF, BUILT_IN_NORMAL, "sinf");
builtin_function ("__builtin_sin", double_ftype_double,
BUILT_IN_SIN, BUILT_IN_NORMAL, "sin");
builtin_function ("__builtin_sinl", ldouble_ftype_ldouble,
- BUILT_IN_SIN, BUILT_IN_NORMAL, "sinl");
+ BUILT_IN_SINL, BUILT_IN_NORMAL, "sinl");
builtin_function ("__builtin_cosf", float_ftype_float,
- BUILT_IN_COS, BUILT_IN_NORMAL, "cosf");
+ BUILT_IN_COSF, BUILT_IN_NORMAL, "cosf");
builtin_function ("__builtin_cos", double_ftype_double,
BUILT_IN_COS, BUILT_IN_NORMAL, "cos");
builtin_function ("__builtin_cosl", ldouble_ftype_ldouble,
- BUILT_IN_COS, BUILT_IN_NORMAL, "cosl");
+ BUILT_IN_COSL, BUILT_IN_NORMAL, "cosl");
pedantic_lvalues = FALSE;