diff options
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 0dc392a..050e1be 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2408,13 +2408,8 @@ expand_body (fn) timevar_push (TV_INTEGRATION); - /* Optimize the body of the function before expanding it. We do not - optimize thunks, as (1) the backend tries to optimize the call to - the thunkee, (b) the tree based inliner breaks that optimization, - (c) virtual functions are rarely inlineable, and (d) - ASM_OUTPUT_MI_THUNK is there to DTRT anyway. */ - if (!DECL_THUNK_P (fn)) - optimize_function (fn); + /* Optimize the body of the function before expanding it. */ + optimize_function (fn); timevar_pop (TV_INTEGRATION); timevar_push (TV_EXPAND); |