2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-25 10:40:56 +08:00

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
This commit is contained in:
Eric Botcazou 2008-05-29 11:33:17 +00:00 committed by Eric Botcazou
parent 2f571334ff
commit 4efa7ef955
4 changed files with 23 additions and 1 deletions

@ -1,3 +1,7 @@
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>
PR tree-optimization/36343

@ -1,3 +1,7 @@
2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/nested-func-6.c: New test.
2008-05-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36343

@ -0,0 +1,14 @@
/* { 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)
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))