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
This commit is contained in:
Danny Smith 2008-04-14 23:53:54 +00:00 committed by Danny Smith
parent 8edb93c423
commit 39e6670f28
2 changed files with 7 additions and 0 deletions

View 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

View 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);