summaryrefslogtreecommitdiff
path: root/gcc/tree-inline.h
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-29 15:47:19 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-29 15:47:19 +0000
commited6049c8d4abb6da11e251490ff3ca6d3c1cada4 (patch)
tree7b6cda1d150280c50f4c6d2bbb388db41dc4fa4d /gcc/tree-inline.h
parent830a6615b11231355af6fbe3ac324301b7014e2f (diff)
downloadgcc-ed6049c8d4abb6da11e251490ff3ca6d3c1cada4.tar.gz
2008-01-29 Richard Guenther <rguenther@suse.de>
PR middle-end/35006 * tree-inline.h (struct copy_body_data): Add remapping_type_depth field. * tree-inline.c (remap_type): Increment remapping_type_depth around remapping types. (copy_body_r): Only add referenced variables if they are referenced from code, not types. * gcc.c-torture/compile/pr35006.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131939 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.h')
-rw-r--r--gcc/tree-inline.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-inline.h b/gcc/tree-inline.h
index 893b9c9d0ce..562713a3299 100644
--- a/gcc/tree-inline.h
+++ b/gcc/tree-inline.h
@@ -95,6 +95,9 @@ typedef struct copy_body_data
/* True if this statement will need to be regimplified. */
bool regimplify;
+ /* > 0 if we are remapping a type currently. */
+ int remapping_type_depth;
+
/* Statements that might be possibly folded. */
struct pointer_set_t *statements_to_fold;