Commit 4efa7ef9 by Eric Botcazou Committed by Eric Botcazou

tree-nested.c (check_for_nested_with_variably_modified): Fix typo.

	* tree-nested.c (check_for_nested_with_variably_modified): Fix typo.

From-SVN: r136154
parent 2f571334
2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
* tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
2008-05-29 Richard Guenther <rguenther@suse.de> 2008-05-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36343 PR tree-optimization/36343
......
2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/nested-func-6.c: New test.
2008-05-29 Richard Guenther <rguenther@suse.de> 2008-05-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36343 PR tree-optimization/36343
......
/* { dg-do compile } */
/* { dg-options "-O -Winline" } */
static inline int foo1 (int a)
{ /* { dg-bogus "function not inlinable" } */
void bar1 (int b)
{}
return a;
}
int foo2 (int a)
{
return foo1 (a);
}
...@@ -770,7 +770,7 @@ check_for_nested_with_variably_modified (tree fndecl, tree orig_fndecl) ...@@ -770,7 +770,7 @@ check_for_nested_with_variably_modified (tree fndecl, tree orig_fndecl)
for (cgn = cgn->nested; cgn ; cgn = cgn->next_nested) for (cgn = cgn->nested; cgn ; cgn = cgn->next_nested)
{ {
for (arg = DECL_ARGUMENTS (cgn->decl); arg; arg = TREE_CHAIN (arg)) 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; return true;
if (check_for_nested_with_variably_modified (cgn->decl, orig_fndecl)) if (check_for_nested_with_variably_modified (cgn->decl, orig_fndecl))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment