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
This commit is contained in:
Mark Mitchell 2000-03-26 19:09:36 +00:00 committed by Mark Mitchell
parent ad41cc2a20
commit f801334326
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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>
* stor-layout.c (layout_type, set_sizetype): early_type_list is

View File

@ -186,7 +186,8 @@ function_cannot_inline_p (fndecl)
return N_("inline functions not supported for this return value type");
/* 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");
/* Cannot inline a function with a varying size argument or one that