From d77c2e5b8639ab15c117f5d4763e451d313154e6 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 18 Apr 2011 21:28:46 +0200 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/semantics.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) 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); -- 2.30.2