aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-11 14:34:51 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-11 14:34:51 +0000
commit446dbdd87f4d43b79ca85b4f75f80252ef251929 (patch)
treeca21c4a91cb58fd5e55b3a7b6df2ca89a28fa5c8
parent33da34ea75e191b07491af0707f75540e4f557fd (diff)
2011-08-11 Richard Guenther <rguenther@suse.de>
* lto-cgraph.c (input_node): Use DECL_BUILT_IN. * tree-vrp.c (stmt_interesting_for_vrp): Likewise. (vrp_visit_stmt): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177668 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/lto-cgraph.c2
-rw-r--r--gcc/tree-vrp.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 711452a073c..6b7aff65d20 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2011-08-11 Richard Guenther <rguenther@suse.de>
+ * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
+ * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
+ (vrp_visit_stmt): Likewise.
+
+2011-08-11 Richard Guenther <rguenther@suse.de>
+
PR middle-end/50040
* gimplify.c (gimplify_modify_expr_complex_part): Mark the
load of the other piece with TREE_NO_WARNING.
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c
index 00462d81e3d..126ba5a01d8 100644
--- a/gcc/lto-cgraph.c
+++ b/gcc/lto-cgraph.c
@@ -994,7 +994,7 @@ input_node (struct lto_file_decl_data *file_data,
have already been read will have their tag stored in the 'aux'
field. Since built-in functions can be referenced in multiple
functions, they are expected to be read more than once. */
- if (node->aux && !DECL_IS_BUILTIN (node->decl))
+ if (node->aux && !DECL_BUILT_IN (node->decl))
internal_error ("bytecode stream: found multiple instances of cgraph "
"node %d", node->uid);
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index 0faf53aa985..6944b42e3d1 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -5594,7 +5594,7 @@ stmt_interesting_for_vrp (gimple stmt)
|| POINTER_TYPE_P (TREE_TYPE (lhs)))
&& ((is_gimple_call (stmt)
&& gimple_call_fndecl (stmt) != NULL_TREE
- && DECL_IS_BUILTIN (gimple_call_fndecl (stmt)))
+ && DECL_BUILT_IN (gimple_call_fndecl (stmt)))
|| !gimple_vuse (stmt)))
return true;
}
@@ -6432,7 +6432,7 @@ vrp_visit_stmt (gimple stmt, edge *taken_edge_p, tree *output_p)
builtin functions. */
if ((is_gimple_call (stmt)
&& gimple_call_fndecl (stmt) != NULL_TREE
- && DECL_IS_BUILTIN (gimple_call_fndecl (stmt)))
+ && DECL_BUILT_IN (gimple_call_fndecl (stmt)))
|| !gimple_vuse (stmt))
return vrp_visit_assignment_or_call (stmt, output_p);
}