From d31d42c74d6f47d4f2082f7675f292be4af951d4 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 8 Feb 2014 00:54:17 +0100 Subject: re PR ipa/60026 (ICE at -O3 on valid code (with the optimize pragma) on x86_64-linux-gnu) PR ipa/60026 * ipa-cp.c (determine_versionability): Fail at -O0 or __attribute__((optimize (0))) or -fno-ipa-cp functions. * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly. Revert: 2014-02-04 Jakub Jelinek PR ipa/60026 * tree-inline.c (copy_forbidden): Fail for __attribute__((optimize (0))) functions. From-SVN: r207621 --- gcc/tree-inline.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'gcc/tree-inline.c') 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; -- cgit v1.1