From 4c9167b37b14c76f86fe5d8c67bd1427da5f59a5 Mon Sep 17 00:00:00 2001 From: mmitchel Date: Mon, 1 Nov 1999 06:42:00 +0000 Subject: [PATCH] * toplev.c (rest_of_compilation): Fix thinko in this change: Fri Oct 29 15:25:07 1999 Arnaud Charlet (rest_of_compilation): If inside an inlined external function, pretend we are just being declared. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30313 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 9 +++++++++ gcc/toplev.c | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e20f1643e7..111c5e9ab91 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +Sun Oct 31 23:42:37 1999 Mark Mitchell + + * toplev.c (rest_of_compilation): Fix thinko in this change: + + Fri Oct 29 15:25:07 1999 Arnaud Charlet + + (rest_of_compilation): If inside an inlined external function, + pretend we are just being declared. + Sun Oct 31 23:03:25 1999 Jeffrey A Law (law@cygnus.com) * integrate.c (expand_inline_function): Fix bugs in previous diff --git a/gcc/toplev.c b/gcc/toplev.c index ea4631a5cd1..64fc23e1df4 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -3586,7 +3586,8 @@ rest_of_compilation (decl) confuse some debugging output writers. */ for (parent = DECL_CONTEXT (current_function_decl); parent != 0; parent = DECL_CONTEXT (parent)) - if (DECL_INLINE (parent) && DECL_EXTERNAL (parent)) + if (TREE_CODE (parent) == FUNCTION_DECL + && DECL_INLINE (parent) && DECL_EXTERNAL (parent)) { DECL_INITIAL (decl) = 0; goto exit_rest_of_compilation; -- 2.11.4.GIT