diff options
author | Richard Stallman <rms@gnu.org> | 1993-07-17 04:48:10 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-07-17 04:48:10 +0000 |
commit | 46dbb914d13f1f05126ae7bc1c60971eed255b1c (patch) | |
tree | c3c62e2d3aad81ed399719a94896bb4973ce3658 /gcc | |
parent | 82e9f5e9b21fd60080117e94b3537fd3fd4cdff4 (diff) | |
download | gcc-46dbb914d13f1f05126ae7bc1c60971eed255b1c.zip gcc-46dbb914d13f1f05126ae7bc1c60971eed255b1c.tar.gz gcc-46dbb914d13f1f05126ae7bc1c60971eed255b1c.tar.bz2 |
(rest_of_compilation): If function is extern inline,
even if we can't inline it, don't compile it.
From-SVN: r4931
Diffstat (limited to 'gcc')
-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 a4ba75e..dd89afb 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; |