summaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.h
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-16 07:52:32 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-16 07:52:32 +0000
commitcba8396b9bce0cfd66e6f615e15b6ccde6aa7f47 (patch)
tree12b7942cbfd2cb3899bacd9893cc12f3a473ced1 /gcc/gimple-fold.h
parent0e49e441a698b969547c0bae9839a886b92a7d8e (diff)
downloadgcc-cba8396b9bce0cfd66e6f615e15b6ccde6aa7f47.tar.gz
2015-10-16 Richard Biener <rguenther@suse.de>
* gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build and get rid of force_gimple_operand_gsi. (gimple_fold_builtin_memory_chk): Likewise. (gimple_fold_builtin_stxcpy_chk): Likewise. (rewrite_to_defined_overflow): Likewise. (gimple_convert_to_ptrofftype): New function. * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228863 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-fold.h')
-rw-r--r--gcc/gimple-fold.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gimple-fold.h b/gcc/gimple-fold.h
index c6b4609f834..61edd696041 100644
--- a/gcc/gimple-fold.h
+++ b/gcc/gimple-fold.h
@@ -112,6 +112,13 @@ gimple_convert (gimple_seq *seq, tree type, tree op)
return gimple_convert (seq, UNKNOWN_LOCATION, type, op);
}
+extern tree gimple_convert_to_ptrofftype (gimple_seq *, location_t, tree);
+inline tree
+gimple_convert_to_ptrofftype (gimple_seq *seq, tree op)
+{
+ return gimple_convert_to_ptrofftype (seq, UNKNOWN_LOCATION, op);
+}
+
extern bool gimple_stmt_nonnegative_warnv_p (gimple *, bool *, int = 0);
/* In gimple-match.c. */