]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-ssa-dce.c
Come up with fndecl_built_in_p.
[thirdparty/gcc.git] / gcc / tree-ssa-dce.c
index d23148675c945bdce3ad70dc3fabb517295f26d3..91ce2aa4fc52d86e4f3680bc0ba2d3ca90c98ad3 100644 (file)
@@ -224,7 +224,7 @@ mark_stmt_if_obviously_necessary (gimple *stmt, bool aggressive)
       {
        tree callee = gimple_call_fndecl (stmt);
        if (callee != NULL_TREE
-           && DECL_BUILT_IN_CLASS (callee) == BUILT_IN_NORMAL)
+           && fndecl_built_in_p (callee, BUILT_IN_NORMAL))
          switch (DECL_FUNCTION_CODE (callee))
            {
            case BUILT_IN_MALLOC:
@@ -565,7 +565,7 @@ mark_all_reaching_defs_necessary_1 (ao_ref *ref ATTRIBUTE_UNUSED,
     {
       tree callee = gimple_call_fndecl (def_stmt);
       if (callee != NULL_TREE
-         && DECL_BUILT_IN_CLASS (callee) == BUILT_IN_NORMAL)
+         && fndecl_built_in_p (callee, BUILT_IN_NORMAL))
        switch (DECL_FUNCTION_CODE (callee))
          {
          case BUILT_IN_MALLOC: