aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2005-09-01 08:54:40 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2005-09-01 08:54:40 +0000
commit355866de6545110b8e3e02b6c47447d868235e66 (patch)
treec2efaa501141cb154f0baf039de17b5444cf03a4 /gcc/ipa-inline.c
parenta1340af76f9d389c82a39326c619c859f634aa04 (diff)
downloadgcc-355866de6545110b8e3e02b6c47447d868235e66.zip
gcc-355866de6545110b8e3e02b6c47447d868235e66.tar.gz
gcc-355866de6545110b8e3e02b6c47447d868235e66.tar.bz2
re PR tree-optimization/15366 ([3.4 only][unit-at-a-time] -fno-inline-functions is ignored for static functions)
2005-09-01 Richard Guenther <rguenther@suse.de> PR tree-optimization/15366 * common.opt: Add -finline-functions-called-once. Put -fearly-inlining in alphabetically ordered place. * doc/invoke.texi: Document new option. * ipa-inline.c (cgraph_decide_inlining): Honour flag_inline_functions_called_once. From-SVN: r103722
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 0c6dc99..927813e 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -944,9 +944,11 @@ cgraph_decide_inlining (void)
}
if (!flag_really_no_inline)
- {
- cgraph_decide_inlining_of_small_functions ();
+ cgraph_decide_inlining_of_small_functions ();
+ if (!flag_really_no_inline
+ && flag_inline_functions_called_once)
+ {
if (dump_file)
fprintf (dump_file, "\nDeciding on functions called once:\n");