diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-07-17 04:48:10 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-07-17 04:48:10 +0000 |
commit | 05c3502292095ec69ea98d592088b396cb776b02 (patch) | |
tree | c3c62e2d3aad81ed399719a94896bb4973ce3658 /gcc/toplev.c | |
parent | 6fcf19f0d4a5c026943fb4b83584eb56dc57dab7 (diff) | |
download | gcc-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.c | 5 |
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; |