diff options
| author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-01 15:46:01 +0000 |
|---|---|---|
| committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-01 15:46:01 +0000 |
| commit | c5d6e012d52f5e599021d85ae5ef4ec7e7da2123 (patch) | |
| tree | 4422957c973aa9a43dc16c986ab9ddc174907bf7 | |
| parent | 42f3005ad27ec08efc542e0055767eaa3d2eba83 (diff) | |
| download | ppe42-gcc-c5d6e012d52f5e599021d85ae5ef4ec7e7da2123.tar.gz ppe42-gcc-c5d6e012d52f5e599021d85ae5ef4ec7e7da2123.zip | |
* decl2.c (comdat_linkage): Don't externalize explicit
instantiations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66331 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/decl2.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2f58d2eb650..fb18ad0a37a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-05-01 Mark Mitchell <mark@codesourcery.com> + + * decl2.c (comdat_linkage): Don't externalize explicit + instantiations. + 2003-05-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> PR c++/10554 diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index ec5ff717eea..00a77dfa30a 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1454,7 +1454,7 @@ comdat_linkage (tree decl) DECL_COMMON (decl) = 1; DECL_INITIAL (decl) = error_mark_node; } - else + else if (!DECL_EXPLICIT_INSTANTIATION (decl)) { /* We can't do anything useful; leave vars for explicit instantiation. */ |

