aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-04-18 21:28:46 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2011-04-18 19:28:46 +0000
commitd77c2e5b8639ab15c117f5d4763e451d313154e6 (patch)
tree7a1f4c658b9a65de887f84c05e21e44969346a32 /gcc
parent513db953ec58e5913e0bf325947ee9e03d2ea38d (diff)
downloadgcc-d77c2e5b8639ab15c117f5d4763e451d313154e6.zip
gcc-d77c2e5b8639ab15c117f5d4763e451d313154e6.tar.gz
gcc-d77c2e5b8639ab15c117f5d4763e451d313154e6.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/semantics.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9364d01..1037348 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 793883e..e9b1907 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);