aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-11-01 06:42:00 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-11-01 06:42:00 +0000
commit3e038608acd6e57ae2a13088b5e1f25d2b23d926 (patch)
treee5221be8df6937eac68c226d932e4403ec3f041f /gcc/toplev.c
parent36a1fa96c3382e0bdb50036e79bba334bc4b3199 (diff)
downloadgcc-3e038608acd6e57ae2a13088b5e1f25d2b23d926.zip
gcc-3e038608acd6e57ae2a13088b5e1f25d2b23d926.tar.gz
gcc-3e038608acd6e57ae2a13088b5e1f25d2b23d926.tar.bz2
toplev.c (rest_of_compilation): Fix thinko in this change:
* toplev.c (rest_of_compilation): Fix thinko in this change: Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR> (rest_of_compilation): If inside an inlined external function, pretend we are just being declared. From-SVN: r30313
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index ea4631a..64fc23e 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;