From 3bd1e206cbeadb50b9c8cbaa25dfe89a2e311b7a Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 8 Oct 1997 07:19:53 +0000 Subject: [PATCH] decl2.c (finish_prevtable_vardecl): Check DECL_REALLY_EXTERN for our key method; it might have been inlined by -O3. * decl2.c (finish_prevtable_vardecl): Check DECL_REALLY_EXTERN for our key method; it might have been inlined by -O3. From-SVN: r15877 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl2.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b3d17955340..5e280ffb744 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Wed Oct 8 00:18:22 1997 Jason Merrill + + * decl2.c (finish_prevtable_vardecl): Check DECL_REALLY_EXTERN + for our key method; it might have been inlined by -O3. + Tue Oct 7 23:00:12 1997 Mark Mitchell * decl.c (make_typename_type): Do not try to call lookup_field for diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 428ba14efc0..325090a8c43 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2589,8 +2589,9 @@ finish_prevtable_vardecl (prev, vars) && !DECL_ABSTRACT_VIRTUAL_P (method)) { SET_CLASSTYPE_INTERFACE_KNOWN (ctype); - CLASSTYPE_VTABLE_NEEDS_WRITING (ctype) = ! DECL_EXTERNAL (method); - CLASSTYPE_INTERFACE_ONLY (ctype) = DECL_EXTERNAL (method); + CLASSTYPE_VTABLE_NEEDS_WRITING (ctype) + = ! DECL_REALLY_EXTERN (method); + CLASSTYPE_INTERFACE_ONLY (ctype) = DECL_REALLY_EXTERN (method); break; } } -- 2.30.2