summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-07-17 04:48:10 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-07-17 04:48:10 +0000
commit05c3502292095ec69ea98d592088b396cb776b02 (patch)
treec3c62e2d3aad81ed399719a94896bb4973ce3658 /gcc/toplev.c
parent6fcf19f0d4a5c026943fb4b83584eb56dc57dab7 (diff)
downloadgcc-05c3502292095ec69ea98d592088b396cb776b02.tar.gz
(rest_of_compilation): If function is extern inline,
even if we can't inline it, don't compile it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4931 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index a4ba75e5806..dd89afbad1c 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2253,6 +2253,11 @@ rest_of_compilation (decl)
if (warn_inline && specd)
warning_with_decl (decl, lose);
DECL_INLINE (decl) = 0;
+ /* Don't really compile an extern inline function.
+ If we can't make it inline, pretend
+ it was only declared. */
+ if (DECL_EXTERNAL (decl))
+ goto exit_rest_of_compilation;
}
else
DECL_INLINE (decl) = 1;