From 51800ea362cd7d46f226a3a5e4ea7bfacd8b0476 Mon Sep 17 00:00:00 2001 From: Mumit Khan Date: Thu, 13 Aug 1998 18:25:04 +0000 Subject: [PATCH] decl2.c (import_export_class): Don't use dllexport attribute as a heuristic. * decl2.c (import_export_class): Don't use dllexport attribute as a heuristic. From-SVN: r21703 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl2.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a845e48794dc..3a9ad524b83e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1998-08-13 Mumit Khan + + * decl2.c (import_export_class): Don't use dllexport + attribute as a heuristic. + 1998-07-29 Jason Merrill * decl.c (push_overloaded_decl): Use current_namespace instead of diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 901f56587229..cc2c3332c514 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2610,8 +2610,6 @@ import_export_class (ctype) /* FIXME this should really use some sort of target-independent macro. */ if (lookup_attribute ("dllimport", TYPE_ATTRIBUTES (ctype))) import_export = -1; - else if (lookup_attribute ("dllexport", TYPE_ATTRIBUTES (ctype))) - import_export = 1; #endif /* If we got -fno-implicit-templates, we import template classes that -- 2.47.2