aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJames Van Artsdalen <jrv@gnu.org>1992-08-28 01:20:34 +0000
committerJames Van Artsdalen <jrv@gnu.org>1992-08-28 01:20:34 +0000
commit96a1b3afd4a5a906b9fe9e443a423b6db3961485 (patch)
tree7cfe0bc0f5ebd36c4f52b99970b8666c34e86f8a /gcc
parent1ba1e2a808424f54d31f4793eb00f36c5b085616 (diff)
downloadgcc-96a1b3afd4a5a906b9fe9e443a423b6db3961485.zip
gcc-96a1b3afd4a5a906b9fe9e443a423b6db3961485.tar.gz
gcc-96a1b3afd4a5a906b9fe9e443a423b6db3961485.tar.bz2
(init_decl_processing): Add sin and cos as built-in functions.
From-SVN: r1976
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-decl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index cebbbd8..afe724a 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2770,6 +2770,11 @@ init_decl_processing ()
BUILT_IN_STRLEN, "strlen");
builtin_function ("__builtin_fsqrt", double_ftype_double,
BUILT_IN_FSQRT, "sqrt");
+ builtin_function ("__builtin_sin", double_ftype_double,
+ BUILT_IN_SIN, "sin");
+ builtin_function ("__builtin_cos", double_ftype_double,
+ BUILT_IN_COS, "cos");
+
/* In an ANSI C program, it is okay to supply built-in meanings
for these functions, since applications cannot validly use them
with any other meaning.
@@ -2788,6 +2793,8 @@ init_decl_processing ()
NULL_PTR);
builtin_function ("strlen", strlen_ftype, BUILT_IN_STRLEN, NULL_PTR);
builtin_function ("sqrt", double_ftype_double, BUILT_IN_FSQRT, NULL_PTR);
+ builtin_function ("sin", double_ftype_double, BUILT_IN_SIN, NULL_PTR);
+ builtin_function ("cos", double_ftype_double, BUILT_IN_COS, NULL_PTR);
/* Declare these functions volatile
to avoid spurious "control drops through" warnings. */