aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-10-30 08:33:12 +0000
committerRichard Stallman <rms@gnu.org>1993-10-30 08:33:12 +0000
commit27937f463c0e5b48554dedf0cd58ec62adb219db (patch)
tree4d65c5f9a6b822d57c35d8e879320a816cfa2782
parent1cf94605cad05360c62a00a71210b2785c572819 (diff)
downloadgcc-27937f463c0e5b48554dedf0cd58ec62adb219db.zip
gcc-27937f463c0e5b48554dedf0cd58ec62adb219db.tar.gz
gcc-27937f463c0e5b48554dedf0cd58ec62adb219db.tar.bz2
(rest_of_compilation): When an `extern inline' is not really inline...
(rest_of_compilation): When an `extern inline' is not really inline, clear DECL_INITIAL so we don't complain about a subsequent non-extern definition. From-SVN: r5942
-rw-r--r--gcc/toplev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 739b8d5..31297ff 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2339,7 +2339,10 @@ rest_of_compilation (decl)
If we can't make it inline, pretend
it was only declared. */
if (DECL_EXTERNAL (decl))
- goto exit_rest_of_compilation;
+ {
+ DECL_INITIAL (decl) = 0;
+ goto exit_rest_of_compilation;
+ }
}
else
DECL_INLINE (decl) = 1;