Commit d77c2e5b by Jan Hubicka Committed by Jan Hubicka

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
parent 513db953
2011-04-17 Jan Hubicka <jh@suse.cz>
* semantics.c (finish_goto_stmt): Do set UNINLINABLE flag on computed
gotos.
2011-04-17 Jason Merrill <jason@redhat.com>
PR c++/48531
......
......@@ -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);
......
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