summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-16 21:17:59 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-16 21:17:59 +0000
commit4bbe9a601a8b51f4227a4fbc6c646077a021b5af (patch)
tree6b452cc0609b44f0fd2fbe2cb5ca39f60a22eb86 /gcc
parent8b1698672c2465760d3870b30112c112c10faaa1 (diff)
downloadgcc-4bbe9a601a8b51f4227a4fbc6c646077a021b5af.tar.gz
* tree-inline.c (inlinable_function_p): Leave it up to the
front-end to turn -finline-functions into DECL_INLINE set for all functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46292 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-inline.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7a14993dc5e..d74ca90ad52 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-16 Alexandre Oliva <aoliva@redhat.com>
+
+ * tree-inline.c (inlinable_function_p): Leave it up to the
+ front-end to turn -finline-functions into DECL_INLINE set for all
+ functions.
+
2001-10-16 Stan Shebs <shebs@apple.com>
* config/rs6000/darwin.h (ASM_COMMENT_START): Define.
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 1018408524c..5e2c3c47f24 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -667,8 +667,12 @@ inlinable_function_p (fn, id)
if (! flag_inline_trees)
;
/* If we're not inlining all functions and the function was not
- declared `inline', we don't inline it. */
- else if (flag_inline_trees < 2 && ! DECL_INLINE (fn))
+ declared `inline', we don't inline it. Don't think of
+ disregarding DECL_INLINE when flag_inline_trees == 2; it's the
+ front-end that must set DECL_INLINE in this case, because
+ dwarf2out loses if a function is inlined that doesn't have
+ DECL_INLINE set. */
+ else if (! DECL_INLINE (fn))
;
/* We can't inline functions that are too big. Only allow a single
function to eat up half of our budget. Make special allowance