(init_decl_processing): Add sin and cos as built-in functions.
authorJames Van Artsdalen <jrv@gnu.org>
Fri, 28 Aug 1992 01:20:34 +0000 (01:20 +0000)
committerJames Van Artsdalen <jrv@gnu.org>
Fri, 28 Aug 1992 01:20:34 +0000 (01:20 +0000)
From-SVN: r1976

gcc/c-decl.c

index cebbbd82c1811a420136cf2686d5e33375eed673..afe724a5799d7453510cb8e5642e0cdf3204e72d 100644 (file)
@@ -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.  */