re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto...
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 15 Feb 2011 18:36:56 +0000 (18:36 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 15 Feb 2011 18:36:56 +0000 (18:36 +0000)
PR debug/47106
PR debug/47402
* cgraph.h (compute_inline_parameters): Return void.
* ipa-inline.c (compute_inline_parameters): Adjust.

From-SVN: r170188

gcc/ChangeLog
gcc/cgraph.h
gcc/ipa-inline.c

index eae0e16c1bd4b01a895c97dcc6b53e6407ac3a44..a4c0ffc6567c1b4cd0bfb8721e672a147261c78c 100644 (file)
@@ -1,3 +1,10 @@
+2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
+
+       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
index 34881502fb3a797b9983e78455f4f1ccbb5f2542..c00418d5888177603f87c4891cf34a5c565c7574 100644 (file)
@@ -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.  */
index 595d4765da636f9dd4ac5d6af3eeb599c0eee1db..97e480758ec3c3826c737c8ad9531fb97fa20168 100644 (file)
@@ -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;
 }