summaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-01 08:54:40 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-01 08:54:40 +0000
commitf1aa280c70cc72c8d70f99fbf17f666386930209 (patch)
treec2efaa501141cb154f0baf039de17b5444cf03a4 /gcc/ipa-inline.c
parenta63dd01b10e09c016e7e3562fa74add2074376c0 (diff)
downloadgcc-f1aa280c70cc72c8d70f99fbf17f666386930209.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103722 138bc75d-0d04-0410-961f-82ee72b054a4
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 0c6dc99aecc..927813e2d74 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");