diff options
author | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-06-22 11:04:26 +0200 |
---|---|---|
committer | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-06-26 12:42:31 +0200 |
commit | 214ca82d2f5cc412b4605d00d8e5ef714e01d818 (patch) | |
tree | 509d212cff7025a76aa4abc4486a93c351b3be92 /gcc/type-escaper.c | |
parent | a7611ae0ac4f0a1f851b91444ec2747c4bbe8a1f (diff) |
mcf is working on our pass but fails on another
Diffstat (limited to 'gcc/type-escaper.c')
-rw-r--r-- | gcc/type-escaper.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/type-escaper.c b/gcc/type-escaper.c index ef81af37589..870c2453bba 100644 --- a/gcc/type-escaper.c +++ b/gcc/type-escaper.c @@ -115,7 +115,8 @@ TypeEscaper::_update(const_tree t) Reason _is_volatile; _is_volatile.type_is_volatile = is_volatile; Reason _inner = _reason | _is_volatile; - _inner.type_is_casted = _inside_indirect_field ? false : _inner.type_is_casted; + _inner.type_is_casted = _inside_indirect_field > 0 ? false : _inner.type_is_casted; + if (_inside_function > 0) _inner.type_is_casted = false; already_in_typemap ? calc[t] |= _inner : calc[t] = _inner; } @@ -184,9 +185,21 @@ TypeEscaper::_walk_UNION_TYPE_post(const_tree t) void TypeEscaper::_walk_FUNCTION_TYPE_pre(const_tree t) { + _inside_function++; } void +TypeEscaper::_walk_FUNCTION_TYPE_post(const_tree t) +{ + _inside_function--; +} +void +TypeEscaper::_walk_function_or_method(const_tree t) +{ +} + + +void TypeEscaper::_walk_FUNCTION_TYPE(const_tree t) { } |