From: Danny Smith Date: Mon, 14 Apr 2008 23:53:54 +0000 (+0000) Subject: re PR target/35921 (Con/de-structor definition fails to override dllimport declaration) X-Git-Tag: releases/gcc-4.4.0~5432 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39e6670f28ec34bf0edba7dd5425a2fccdd798a9;p=thirdparty%2Fgcc.git re PR target/35921 (Con/de-structor definition fails to override dllimport declaration) PR target/35921 * optimize.c (maybe_clone_body): Copy DECL_DLLIMPORT_P flag to clone. From-SVN: r134298 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1e1316565162..cee41d5fbdb1 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2008-04-16 Danny Smith + + PR target/35921 + * optimize.c (maybe_clone_body): Copy DECL_DLLIMPORT_P flag + to clone. + 2008-04-09 Jason Merrill PR c++/35708 diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index 2ffbd6f218a0..a91f8d5f564a 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -146,6 +146,7 @@ maybe_clone_body (tree fn) TREE_PUBLIC (clone) = TREE_PUBLIC (fn); DECL_VISIBILITY (clone) = DECL_VISIBILITY (fn); DECL_VISIBILITY_SPECIFIED (clone) = DECL_VISIBILITY_SPECIFIED (fn); + DECL_DLLIMPORT_P (clone) = DECL_DLLIMPORT_P (fn); /* Adjust the parameter names and locations. */ parm = DECL_ARGUMENTS (fn);