semantics.c (finish_goto_stmt): Do set UNINLINABLE flag on computed gotos.
authorJan Hubicka <jh@suse.cz>
Mon, 18 Apr 2011 19:28:46 +0000 (21:28 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 18 Apr 2011 19:28:46 +0000 (19:28 +0000)
* semantics.c (finish_goto_stmt): Do set UNINLINABLE flag on computed
gotos.

From-SVN: r172668

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 9364d01ac19497157f12cc2e111c6ef9975e0f9a..10373489a61e7b63c4ea68d49342adc480da09fd 100644 (file)
@@ -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
index 793883e898254e4793dd5e9251f5d42f4ea417e5..e9b19076ff195b961eecf41534cadbdc1368b146 100644 (file)
@@ -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);