From: Jan Hubicka Date: Mon, 17 Nov 2014 18:53:51 +0000 (+0100) Subject: cgraphunit.c (analyze_functions): Use opt_for_fn. X-Git-Tag: releases/gcc-5.1.0~3165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b065b6696786e13ccce9c8b0b3eb78b02c90011d;p=thirdparty%2Fgcc.git cgraphunit.c (analyze_functions): Use opt_for_fn. * cgraphunit.c (analyze_functions): Use opt_for_fn. * cgraph.h (cgraph_node::optimize_for_size_p): Likewise. From-SVN: r217668 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f5a6ee4db970..4bc782694e1f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-11-17 Jan Hubicka + + * cgraphunit.c (analyze_functions): Use opt_for_fn. + * cgraph.h (cgraph_node::optimize_for_size_p): Likewise. + 2014-11-17 Jan Hubicka * cgraph.c (symbol_table::create_edge): Use opt_for_fn. diff --git a/gcc/cgraph.h b/gcc/cgraph.h index fc5fe82d1bec..83181c472cba 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -2720,7 +2720,7 @@ cgraph_node::mark_force_output (void) inline bool cgraph_node::optimize_for_size_p (void) { - if (optimize_size) + if (opt_for_fn (decl, optimize_size)) return true; if (frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED) return true; diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 4fba9ff59ce4..6695ae3ed205 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1001,7 +1001,7 @@ analyze_functions (void) for (edge = cnode->callees; edge; edge = edge->next_callee) if (edge->callee->definition) enqueue_node (edge->callee); - if (optimize && flag_devirtualize) + if (optimize && opt_for_fn (cnode->decl, flag_devirtualize)) { cgraph_edge *next;