diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-18 03:45:51 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-18 03:45:51 +0000 |
commit | 64c18e8da5a1ffb1a017df60716af89f5787716a (patch) | |
tree | a8b8b3afa910e5bbcf84a05b7b4cdeb30ff7d172 /gcc/builtins.c | |
parent | 10b9666fe7542968c69eb3a2759d57e9296657e7 (diff) | |
download | gcc-64c18e8da5a1ffb1a017df60716af89f5787716a.tar.gz |
* builtins.c (fold_builtin_signbit): Take decomposed arguments
of CALL_EXPR.
(fold_builtin_1): Update a call to fold_builtin_signbit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96649 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 26f2306e2f6..20423fb12fe 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -169,7 +169,7 @@ static tree fold_builtin_strchr (tree, tree); static tree fold_builtin_memcmp (tree); static tree fold_builtin_strcmp (tree); static tree fold_builtin_strncmp (tree); -static tree fold_builtin_signbit (tree); +static tree fold_builtin_signbit (tree, tree); static tree fold_builtin_copysign (tree, tree, tree); static tree fold_builtin_isascii (tree); static tree fold_builtin_toascii (tree); @@ -7557,10 +7557,8 @@ fold_builtin_strncmp (tree arglist) NULL_TREE if no simplification can be made. */ static tree -fold_builtin_signbit (tree exp) +fold_builtin_signbit (tree fndecl, tree arglist) { - tree fndecl = get_callee_fndecl (exp); - tree arglist = TREE_OPERAND (exp, 1); tree type = TREE_TYPE (TREE_TYPE (fndecl)); tree arg, temp; @@ -8248,7 +8246,7 @@ fold_builtin_1 (tree exp, bool ignore) case BUILT_IN_SIGNBIT: case BUILT_IN_SIGNBITF: case BUILT_IN_SIGNBITL: - return fold_builtin_signbit (exp); + return fold_builtin_signbit (fndecl, arglist); case BUILT_IN_ISASCII: return fold_builtin_isascii (arglist); |