summaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-16 11:17:15 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-16 11:17:15 +0000
commitc2e9c1da57c35f46052398ab31707ceb2dfc4e09 (patch)
treeafd93279258b2ca1d846fdca1df67587efe6faad /gcc/cp/decl2.c
parent56664e5da23e1ca0072b690b206c297484897bd3 (diff)
downloadgcc-c2e9c1da57c35f46052398ab31707ceb2dfc4e09.tar.gz
2012-01-16 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 183204 using svnmerge git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@183208 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 05f4b42ac73..270fe54bcef 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -43,7 +43,6 @@ along with GCC; see the file COPYING3. If not see
#include "target.h"
#include "c-family/c-common.h"
#include "c-family/c-objc.h"
-#include "tree-mudflap.h"
#include "cgraph.h"
#include "tree-inline.h"
#include "c-family/c-pragma.h"
@@ -1984,6 +1983,8 @@ constrain_visibility (tree decl, int visibility, bool tmpl)
&& (tmpl || !DECL_VISIBILITY_SPECIFIED (decl)))
{
DECL_VISIBILITY (decl) = (enum symbol_visibility) visibility;
+ /* This visibility was not specified. */
+ DECL_VISIBILITY_SPECIFIED (decl) = false;
}
}