diff options
author | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-14 23:53:54 +0000 |
---|---|---|
committer | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-14 23:53:54 +0000 |
commit | 578887bba0b979d7bfa65df1ae02e2f9d48cd5d1 (patch) | |
tree | c01f85bb3428e2ae437ae551dd62b0b78a288c23 /gcc/cp | |
parent | 271bda8a3bbda83213f416b668521c2d7d9fd095 (diff) | |
download | gcc-578887bba0b979d7bfa65df1ae02e2f9d48cd5d1.tar.gz |
PR target/35921
* 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
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/optimize.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1e131656516..cee41d5fbdb 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index 2ffbd6f218a..a91f8d5f564 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); |