diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-16 07:52:32 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-16 07:52:32 +0000 |
commit | cba8396b9bce0cfd66e6f615e15b6ccde6aa7f47 (patch) | |
tree | 12b7942cbfd2cb3899bacd9893cc12f3a473ced1 /gcc/gimple-fold.h | |
parent | 0e49e441a698b969547c0bae9839a886b92a7d8e (diff) | |
download | gcc-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.h | 7 |
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. */ |