(C++) linkage patch
Jason Merrill
jason@cygnus.com
Wed Mar 3 11:22:00 GMT 1999
See the comment.
1999-03-03 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (import_export_class): Also return if
CLASSTYPE_INTERFACE_ONLY is set.
Index: decl2.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/decl2.c,v
retrieving revision 1.187
diff -c -p -r1.187 decl2.c
*** decl2.c 1999/02/26 23:36:55 1.187
--- decl2.c 1999/03/03 19:21:06
*************** import_export_class (ctype)
*** 2472,2477 ****
--- 2472,2485 ----
int import_export = 0;
if (CLASSTYPE_INTERFACE_KNOWN (ctype))
+ return;
+
+ /* If MULTIPLE_SYMBOL_SPACES is defined and we saw a #pragma interface,
+ we will have CLASSTYPE_INTERFACE_ONLY set but not
+ CLASSTYPE_INTERFACE_KNOWN. In that case, we don't want to use this
+ heuristic because someone will supply a #pragma implementation
+ elsewhere, and deducing it here would produce a conflict. */
+ if (CLASSTYPE_INTERFACE_ONLY (ctype))
return;
#ifdef VALID_MACHINE_TYPE_ATTRIBUTE
More information about the Gcc-patches
mailing list