diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1997-07-27 19:34:28 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1997-07-27 19:34:28 -0400 |
commit | 4ac74fb88fb66c14da983ea9599f31b1e15c3fdf (patch) | |
tree | 8d221eb142611a1f3d08610838fe00c80490aa21 /gcc/function.c | |
parent | b2943cea7647ec7ec171c14d1460ee45d0daa4a7 (diff) | |
download | gcc-4ac74fb88fb66c14da983ea9599f31b1e15c3fdf.zip gcc-4ac74fb88fb66c14da983ea9599f31b1e15c3fdf.tar.gz gcc-4ac74fb88fb66c14da983ea9599f31b1e15c3fdf.tar.bz2 |
(put_var_into_stack, trampoline_address): Treat inline_function_decl
like current_function_decl.
From-SVN: r14539
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c index 582c4ca..db7d3ea 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1330,7 +1330,7 @@ put_var_into_stack (decl) /* If this variable comes from an outer function, find that function's saved context. */ - if (context != current_function_decl) + if (context != current_function_decl && context != inline_function_decl) for (function = outer_function_chain; function; function = function->next) if (function->decl == context) break; @@ -4632,7 +4632,8 @@ trampoline_address (function) /* Find the `struct function' for the function containing FUNCTION. */ fp = 0; fn_context = decl_function_context (function); - if (fn_context != current_function_decl) + if (fn_context != current_function_decl + && fn_context != inline_function_decl) for (fp = outer_function_chain; fp; fp = fp->next) if (fp->decl == fn_context) break; |