Commit f8013343 by Mark Mitchell Committed by Mark Mitchell

integrate.c (function_cannot_inline_p): Do inline functions that return `void'.

	* integrate.c (function_cannot_inline_p): Do inline functions that
	return `void'.

From-SVN: r32752
parent ad41cc2a
2000-03-26 Mark Mitchell <mark@codesourcery.com>
* integrate.c (function_cannot_inline_p): Do inline functions that
return `void'.
Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stor-layout.c (layout_type, set_sizetype): early_type_list is * stor-layout.c (layout_type, set_sizetype): early_type_list is
......
...@@ -186,7 +186,8 @@ function_cannot_inline_p (fndecl) ...@@ -186,7 +186,8 @@ function_cannot_inline_p (fndecl)
return N_("inline functions not supported for this return value type"); return N_("inline functions not supported for this return value type");
/* We can't inline functions that return structures of varying size. */ /* We can't inline functions that return structures of varying size. */
if (int_size_in_bytes (TREE_TYPE (TREE_TYPE (fndecl))) < 0) if (TREE_CODE (TREE_TYPE (TREE_TYPE (fndecl))) != VOID_TYPE
&& int_size_in_bytes (TREE_TYPE (TREE_TYPE (fndecl))) < 0)
return N_("function with varying-size return value cannot be inline"); return N_("function with varying-size return value cannot be inline");
/* Cannot inline a function with a varying size argument or one that /* Cannot inline a function with a varying size argument or one that
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment