diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-03-26 19:09:36 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-03-26 19:09:36 +0000 |
commit | f801334326ee7c35c47c47dc3742a3fb4dde1689 (patch) | |
tree | 654d5f6d4563e7a5f80a343b4f397d1e3f9e6f8a | |
parent | ad41cc2a20f92582f8092ec0aace33cb600277bb (diff) | |
download | gcc-f801334326ee7c35c47c47dc3742a3fb4dde1689.zip gcc-f801334326ee7c35c47c47dc3742a3fb4dde1689.tar.gz gcc-f801334326ee7c35c47c47dc3742a3fb4dde1689.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/integrate.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 83ddf36..99368f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/integrate.c b/gcc/integrate.c index 5b8c8dc..163f59b 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -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 |