projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82e9f5e
)
(rest_of_compilation): If function is extern inline,
author
Richard Stallman
<rms@gnu.org>
Sat, 17 Jul 1993 04:48:10 +0000
(
04:48
+0000)
committer
Richard Stallman
<rms@gnu.org>
Sat, 17 Jul 1993 04:48:10 +0000
(
04:48
+0000)
even if we can't inline it, don't compile it.
From-SVN: r4931
gcc/toplev.c
patch
|
blob
|
history
diff --git
a/gcc/toplev.c
b/gcc/toplev.c
index a4ba75e5806ae4420339892ca74ae040e9626dc8..dd89afbad1c128cd963429e6bcab7602d54c09ef 100644
(file)
--- 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;