Mercurial > hg > CbC > CbC_gcc
diff gcc/tree-stdarg.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/tree-stdarg.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/tree-stdarg.c Thu Oct 25 07:37:49 2018 +0900 @@ -1,5 +1,5 @@ /* Pass computing data for optimizing stdarg functions. - Copyright (C) 2004-2017 Free Software Foundation, Inc. + Copyright (C) 2004-2018 Free Software Foundation, Inc. Contributed by Jakub Jelinek <jakub@redhat.com> This file is part of GCC. @@ -36,7 +36,6 @@ #include "tree-into-ssa.h" #include "tree-cfg.h" #include "tree-stdarg.h" -#include "tree-chkp.h" /* A simple pass that attempts to optimize stdarg functions on architectures that need to save register arguments to stack on entry to stdarg functions. @@ -695,7 +694,7 @@ callee = gimple_call_fndecl (stmt); if (!callee - || DECL_BUILT_IN_CLASS (callee) != BUILT_IN_NORMAL) + || !fndecl_built_in_p (callee, BUILT_IN_NORMAL)) continue; switch (DECL_FUNCTION_CODE (callee)) @@ -868,9 +867,8 @@ tree callee = gimple_call_fndecl (stmt); if (callee - && DECL_BUILT_IN_CLASS (callee) == BUILT_IN_NORMAL - && (DECL_FUNCTION_CODE (callee) == BUILT_IN_VA_START - || DECL_FUNCTION_CODE (callee) == BUILT_IN_VA_END)) + && (fndecl_built_in_p (callee, BUILT_IN_VA_START) + || fndecl_built_in_p (callee, BUILT_IN_VA_END))) continue; } @@ -1038,11 +1036,6 @@ unsigned int nargs = gimple_call_num_args (stmt); gcc_assert (useless_type_conversion_p (TREE_TYPE (lhs), type)); - /* We replace call with a new expr. This may require - corresponding bndret call fixup. */ - if (chkp_function_instrumented_p (fun->decl)) - chkp_fixup_inlined_call (lhs, expr); - if (nargs == 4) { /* We've transported the size of with WITH_SIZE_EXPR here as