summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ccp.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-28 14:47:45 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-28 14:47:45 +0000
commite7ed5dd7808040bd28347abddf15b54817c89296 (patch)
tree9ae131a36d66e181fa70e08625f81cc6b17e71d7 /gcc/tree-ssa-ccp.c
parent8ef8c098038af28570be516f8655b806137aee8e (diff)
downloadgcc-e7ed5dd7808040bd28347abddf15b54817c89296.tar.gz
PR middle-end/52691
* tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize __builtin_va_start to __builtin_next_arg if the latter is builtin_decl_explicit_p rather than when it is not. * gcc.dg/pr52691.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185917 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r--gcc/tree-ssa-ccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c
index 2080c06cce6..c28006a9132 100644
--- a/gcc/tree-ssa-ccp.c
+++ b/gcc/tree-ssa-ccp.c
@@ -2288,7 +2288,7 @@ optimize_stdarg_builtin (gimple call)
case BUILT_IN_VA_START:
if (!va_list_simple_ptr
|| targetm.expand_builtin_va_start != NULL
- || builtin_decl_explicit_p (BUILT_IN_NEXT_ARG))
+ || !builtin_decl_explicit_p (BUILT_IN_NEXT_ARG))
return NULL_TREE;
if (gimple_call_num_args (call) != 2)