aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index ade78b2..439ef4c 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -3315,18 +3315,6 @@ copy_forbidden (struct function *fun, tree fndecl)
goto fail;
}
- tree fs_opts;
- fs_opts = DECL_FUNCTION_SPECIFIC_OPTIMIZATION (fun->decl);
- if (fs_opts)
- {
- struct cl_optimization *os = TREE_OPTIMIZATION (fs_opts);
- if (!os->x_optimize)
- {
- reason = G_("function %q+F compiled without optimizations");
- goto fail;
- }
- }
-
fail:
fun->cannot_be_copied_reason = reason;
fun->cannot_be_copied_set = true;