aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/doc/invoke.texi4
-rw-r--r--gcc/opts.c2
-rw-r--r--gcc/params.def4
4 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 92437ba..fe1f21b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+Fri Sep 5 07:35:16 CEST 2003 Jan Hubicka <jh@suse.cz>
+
+ * opts.c (decode_options): Enable unit-at-a-time at -O2.
+ * params.def (max-inline-insns-single): Set to 500
+ (max-inline-insns-auto): Set to 150
+ * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
+
2003-09-04 Richard Henderson <rth@redhat.com>
* cgraph.c (cgraph_mark_reachable_node): Split out from ...
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 4ca859b..db31657 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -4591,7 +4591,7 @@ This number sets the maximum number of instructions (counted in gcc's
internal representation) in a single function that the tree inliner
will consider for inlining. This only affects functions declared
inline and methods implemented in a class declaration (C++).
-The default value is 100.
+The default value is 500.
@item max-inline-insns-auto
When you use @option{-finline-functions} (included in @option{-O3}),
@@ -4599,7 +4599,7 @@ a lot of functions that would otherwise not be considered for inlining
by the compiler will be investigated. To those functions, a different
(more restrictive) limit compared to functions declared inline can
be applied.
-The default value is 100.
+The default value is 150.
@item max-inline-insns
The tree inliner does decrease the allowable size for single functions
diff --git a/gcc/opts.c b/gcc/opts.c
index fe8d28f..c4c5b9f 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -556,6 +556,7 @@ decode_options (unsigned int argc, const char **argv)
flag_delete_null_pointer_checks = 1;
flag_reorder_blocks = 1;
flag_reorder_functions = 1;
+ flag_unit_at_a_time = 1;
}
if (optimize >= 3)
@@ -563,7 +564,6 @@ decode_options (unsigned int argc, const char **argv)
flag_inline_functions = 1;
flag_rename_registers = 1;
flag_unswitch_loops = 1;
- flag_unit_at_a_time = 1;
}
if (optimize < 2 || optimize_size)
diff --git a/gcc/params.def b/gcc/params.def
index 1d50e2b..c5dfca8 100644
--- a/gcc/params.def
+++ b/gcc/params.def
@@ -51,7 +51,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE,
"max-inline-insns-single",
"The maximum number of instructions in a single function eligible for inlining",
- 100)
+ 500)
/* The single function inlining limit for functions that are
inlined by virtue of -finline-functions (-O3).
@@ -63,7 +63,7 @@ DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE,
DEFPARAM (PARAM_MAX_INLINE_INSNS_AUTO,
"max-inline-insns-auto",
"The maximum number of instructions when automatically inlining",
- 100)
+ 150)
/* The repeated inlining limit. After this number of instructions
(in the internal gcc representation, not real machine instructions)