From: Jan Hubicka Date: Mon, 18 Apr 2011 19:28:46 +0000 (+0200) Subject: semantics.c (finish_goto_stmt): Do set UNINLINABLE flag on computed gotos. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d77c2e5b8639ab15c117f5d4763e451d313154e6;p=gcc.git semantics.c (finish_goto_stmt): Do set UNINLINABLE flag on computed gotos. * semantics.c (finish_goto_stmt): Do set UNINLINABLE flag on computed gotos. From-SVN: r172668 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 9364d01ac19..10373489a61 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2011-04-17 Jan Hubicka + + * semantics.c (finish_goto_stmt): Do set UNINLINABLE flag on computed + gotos. + 2011-04-17 Jason Merrill PR c++/48531 diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 793883e8982..e9b19076ff1 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -569,11 +569,6 @@ finish_goto_stmt (tree destination) if (error_operand_p (destination)) return NULL_TREE; } - /* We don't inline calls to functions with computed gotos. - Those functions are typically up to some funny business, - and may be depending on the labels being at particular - addresses, or some such. */ - DECL_UNINLINABLE (current_function_decl) = 1; } check_goto (destination);