re PR target/35921 (Con/de-structor definition fails to override dllimport declaration)
authorDanny Smith <dannysmith@users.sourceforge.net>
Mon, 14 Apr 2008 23:53:54 +0000 (23:53 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Mon, 14 Apr 2008 23:53:54 +0000 (23:53 +0000)
       PR target/35921
       * optimize.c (maybe_clone_body): Copy DECL_DLLIMPORT_P flag
       to clone.

From-SVN: r134298

gcc/cp/ChangeLog
gcc/cp/optimize.c

index 1e1316565162a6d02aee079ddf79ba9df71a8309..cee41d5fbdb110a8adcda291df51fdea47a49333 100644 (file)
@@ -1,3 +1,9 @@
+2008-04-16  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       PR target/35921
+       * optimize.c (maybe_clone_body): Copy DECL_DLLIMPORT_P flag
+       to clone.
+
 2008-04-09  Jason Merrill  <jason@redhat.com>
 
        PR c++/35708
index 2ffbd6f218a0ef86828b4b7ffe19cceac0e14ca7..a91f8d5f564a67b38886d08c63e13b3272e671cf 100644 (file)
@@ -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);