aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index b7ff782..8e9d9e4 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -7474,6 +7474,8 @@ fold_builtin_sincos (tree arglist)
return res;
/* Canonicalize sincos to cexpi. */
+ if (!TARGET_C99_FUNCTIONS)
+ return NULL_TREE;
fn = mathfn_built_in (type, BUILT_IN_CEXPI);
if (!fn)
return NULL_TREE;
@@ -7507,6 +7509,8 @@ fold_builtin_cexp (tree arglist, tree type)
/* In case we can figure out the real part of arg0 and it is constant zero
fold to cexpi. */
+ if (!TARGET_C99_FUNCTIONS)
+ return NULL_TREE;
ifn = mathfn_built_in (rtype, BUILT_IN_CEXPI);
if (!ifn)
return NULL_TREE;