aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1993-08-04 23:45:32 -0600
committerJeff Law <law@gcc.gnu.org>1993-08-04 23:45:32 -0600
commitcaa0eccd7b47272c6349bb133961819e70af8899 (patch)
tree71d95fe3c9be89398da0bf78d2cc6a982132a049
parentb31a1e3f17cbeab3b625441a1332559b89878e73 (diff)
downloadgcc-caa0eccd7b47272c6349bb133961819e70af8899.zip
gcc-caa0eccd7b47272c6349bb133961819e70af8899.tar.gz
gcc-caa0eccd7b47272c6349bb133961819e70af8899.tar.bz2
toplev.c (rest_of_compilation): If not optimizing, turn off DECL_INLINE for functions declared as inline.
* toplev.c (rest_of_compilation): If not optimizing, turn off DECL_INLINE for functions declared as inline. Avoid turning on DECL_INLINE when -finline-functions is used without -O. From-SVN: r5074
-rw-r--r--gcc/toplev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 339f0ed..1df2cff 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2250,7 +2250,9 @@ rest_of_compilation (decl)
TIMEVAR (integration_time,
{
lose = function_cannot_inline_p (decl);
- if (lose)
+ /* If not optimzing, then make sure the DECL_INLINE
+ bit is off. */
+ if (lose || ! optimize)
{
if (warn_inline && specd)
warning_with_decl (decl, lose);