summaryrefslogtreecommitdiffstats
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-26 19:09:36 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-26 19:09:36 +0000
commite88bc836ff7f498542c7f1198ba6977f460056f8 (patch)
tree654d5f6d4563e7a5f80a343b4f397d1e3f9e6f8a /gcc/integrate.c
parenteff5f0365cd41a4038f211f87d7102be5619f6f2 (diff)
downloadppe42-gcc-e88bc836ff7f498542c7f1198ba6977f460056f8.tar.gz
ppe42-gcc-e88bc836ff7f498542c7f1198ba6977f460056f8.zip
* integrate.c (function_cannot_inline_p): Do inline functions that
return `void'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32752 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r--gcc/integrate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 5b8c8dc7b25..163f59bd473 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
OpenPOWER on IntegriCloud