diff options
author | Jan Hubicka <jh@suse.cz> | 2004-09-25 12:05:09 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2004-09-25 10:05:09 +0000 |
commit | 70f3cc30aa04ab2f57f156c16a7f1db33084f04e (patch) | |
tree | 7e0fabeafbba7b2dbafffbeed8cf36595efdeef3 /gcc/tree-inline.c | |
parent | 20319d321a0add192498083daefc7d0cc7cb90a2 (diff) | |
download | gcc-70f3cc30aa04ab2f57f156c16a7f1db33084f04e.zip gcc-70f3cc30aa04ab2f57f156c16a7f1db33084f04e.tar.gz gcc-70f3cc30aa04ab2f57f156c16a7f1db33084f04e.tar.bz2 |
passes.c (rest_of_handle_cfg): Disable const/pure function detection when doing tree based profiling.
* passes.c (rest_of_handle_cfg): Disable const/pure function
detection when doing tree based profiling.
* tree-inline.c (expand_call_inline): Fix incorrectly reversed
conditional.
From-SVN: r88092
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index d026dca..38fa455 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1458,7 +1458,7 @@ expand_call_inline (tree *tp, int *walk_subtrees, void *data) where previous inlining turned indirect call into direct call by constant propagating arguments. In all other cases we hit a bug (incorrect node sharing is most common reason for missing edges. */ - gcc_assert (dest->needed || flag_unit_at_a_time); + gcc_assert (dest->needed || !flag_unit_at_a_time); cgraph_create_edge (id->node, dest, t)->inline_failed = N_("originally indirect function call not considered for inlining"); goto egress; |