aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2011-02-15 18:36:56 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2011-02-15 18:36:56 +0000
commitde650422167b7a651474426acb164bd52f2e53d7 (patch)
tree53ebfd9d30fafb90487431030f008a428663b012
parent30925d946aa6b2bf93cc9f090ca517f3622df1ff (diff)
downloadgcc-de650422167b7a651474426acb164bd52f2e53d7.zip
gcc-de650422167b7a651474426acb164bd52f2e53d7.tar.gz
gcc-de650422167b7a651474426acb164bd52f2e53d7.tar.bz2
re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106 PR debug/47402 * cgraph.h (compute_inline_parameters): Return void. * ipa-inline.c (compute_inline_parameters): Adjust. From-SVN: r170188
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/cgraph.h2
-rw-r--r--gcc/ipa-inline.c3
3 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eae0e16..a4c0ffc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -2,6 +2,13 @@
PR debug/47106
PR debug/47402
+ * cgraph.h (compute_inline_parameters): Return void.
+ * ipa-inline.c (compute_inline_parameters): Adjust.
+
+2011-02-15 Alexandre Oliva <aoliva@redhat.com>
+
+ PR debug/47106
+ PR debug/47402
* tree-inline.h (estimated_stack_frame_size): Take cgraph node
rather than decl.
* cfgexpand.c (estimated_stack_frame_size): Likewise.
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 3488150..c00418d 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -769,7 +769,7 @@ varpool_next_static_initializer (struct varpool_node *node)
/* In ipa-inline.c */
void cgraph_clone_inlined_nodes (struct cgraph_edge *, bool, bool);
-unsigned int compute_inline_parameters (struct cgraph_node *);
+void compute_inline_parameters (struct cgraph_node *);
/* Create a new static variable of type TYPE. */
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 595d476..97e4807 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -1975,7 +1975,7 @@ estimate_function_body_sizes (struct cgraph_node *node)
}
/* Compute parameters of functions used by inliner. */
-unsigned int
+void
compute_inline_parameters (struct cgraph_node *node)
{
HOST_WIDE_INT self_stack_size;
@@ -2013,7 +2013,6 @@ compute_inline_parameters (struct cgraph_node *node)
/* Inlining characteristics are maintained by the cgraph_mark_inline. */
node->global.time = inline_summary (node)->self_time;
node->global.size = inline_summary (node)->self_size;
- return 0;
}