summaryrefslogtreecommitdiff
path: root/gcc/tree-eh.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r--gcc/tree-eh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index a8885e36d1a..5fe8f24ed27 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -1535,7 +1535,7 @@ decide_copy_try_finally (int ndests, gimple_seq finally)
sw_estimate = 10 + 2 * ndests;
/* Optimize for size clearly wants our best guess. */
- if (optimize_size)
+ if (optimize_function_for_size_p (cfun))
return f_estimate < sw_estimate;
/* ??? These numbers are completely made up so far. */