diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2009-11-04 22:37:33 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2009-11-04 22:37:33 +0000 |
commit | 52b190e9c074669b773132a4ee479a282c51bf60 (patch) | |
tree | 3fbeca8cfc51bc57b73bb830c2af5751128a12dd /gnu | |
parent | 4d0bbc1e01f1fde69f49b0be9924ff8916650505 (diff) |
This typo in check_for_nested_with_variably_modified was present for 4 years
and hampered the inliner without anyone noticing.
fixes gcc bug #36367
reported by henning petersen
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/gcc/gcc/tree-nested.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/gcc/gcc/tree-nested.c b/gnu/gcc/gcc/tree-nested.c index 06fbbc99e6b..e62c47ae175 100644 --- a/gnu/gcc/gcc/tree-nested.c +++ b/gnu/gcc/gcc/tree-nested.c @@ -750,7 +750,7 @@ check_for_nested_with_variably_modified (tree fndecl, tree orig_fndecl) for (cgn = cgn->nested; cgn ; cgn = cgn->next_nested) { for (arg = DECL_ARGUMENTS (cgn->decl); arg; arg = TREE_CHAIN (arg)) - if (variably_modified_type_p (TREE_TYPE (arg), 0), orig_fndecl) + if (variably_modified_type_p (TREE_TYPE (arg), orig_fndecl)) return true; if (check_for_nested_with_variably_modified (cgn->decl, orig_fndecl)) |