aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-01-16 16:18:24 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-01-16 16:18:24 +0100
commit47c268c4b27782717fbccec5019e0cd97d005afb (patch)
tree5c745cb7d58bf3c4f7d5f54233cd961caf3125d2 /gcc/gimplify.h
parentfb2f98bb6c5e016514bc3b93f8f1550e39e7d28f (diff)
downloadgcc-47c268c4b27782717fbccec5019e0cd97d005afb.zip
gcc-47c268c4b27782717fbccec5019e0cd97d005afb.tar.gz
gcc-47c268c4b27782717fbccec5019e0cd97d005afb.tar.bz2
re PR libgomp/83590 ([nvptx] openacc reduction C regressions)
PR libgomp/83590 * gimplify.c (gimplify_one_sizepos): For is_gimple_constant (expr) return early, inline manually is_gimple_sizepos. Make sure if we call gimplify_expr we don't end up with a gimple constant. * tree.c (variably_modified_type_p): Don't return true for is_gimple_constant (_t). Inline manually is_gimple_sizepos. * gimplify.h (is_gimple_sizepos): Remove. Co-Authored-By: Richard Biener <rguenther@suse.de> From-SVN: r256748
Diffstat (limited to 'gcc/gimplify.h')
-rw-r--r--gcc/gimplify.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/gcc/gimplify.h b/gcc/gimplify.h
index 2b70d32..dd0e4c0 100644
--- a/gcc/gimplify.h
+++ b/gcc/gimplify.h
@@ -85,23 +85,4 @@ extern enum gimplify_status gimplify_va_arg_expr (tree *, gimple_seq *,
gimple_seq *);
gimple *gimplify_assign (tree, tree, gimple_seq *);
-/* Return true if gimplify_one_sizepos doesn't need to gimplify
- expr (when in TYPE_SIZE{,_UNIT} and similar type/decl size/bitsize
- fields). */
-
-static inline bool
-is_gimple_sizepos (tree expr)
-{
- /* gimplify_one_sizepos doesn't need to do anything if the value isn't there,
- is constant, or contains A PLACEHOLDER_EXPR. We also don't want to do
- anything if it's already a VAR_DECL. If it's a VAR_DECL from another
- function, the gimplifier will want to replace it with a new variable,
- but that will cause problems if this type is from outside the function.
- It's OK to have that here. */
- return (expr == NULL_TREE
- || TREE_CODE (expr) == INTEGER_CST
- || TREE_CODE (expr) == VAR_DECL
- || CONTAINS_PLACEHOLDER_P (expr));
-}
-
#endif /* GCC_GIMPLIFY_H */