OSDN Git Service

PR target/35921
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 2008 23:53:54 +0000 (23:53 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 2008 23:53:54 +0000 (23:53 +0000)
       * optimize.c (maybe_clone_body): Copy DECL_DLLIMPORT_P flag
       to clone.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134298 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 1e13165..cee41d5 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 2ffbd6f..a91f8d5 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);