Commit 7dbd86a5 by Geoffrey Keating Committed by Geoffrey Keating

re PR libgcj/31093 (Multicast PromiscuousTraffic)

	PR 31093
	* decl2.c (determine_visibility): Remove duplicate code for
	handling type info.

From-SVN: r125721
parent 4962b679
2007-06-14 Geoff Keating <geoffk@apple.com>
PR 31093
* decl2.c (determine_visibility): Remove duplicate code for
handling type info.
2007-06-12 Ian Lance Taylor <iant@google.com>
PR libstdc++/29286
......
......@@ -1698,10 +1698,6 @@ determine_visibility (tree decl)
class can influence the visibility of the DECL. */
if (DECL_CLASS_SCOPE_P (decl))
class_type = DECL_CONTEXT (decl);
else if (TREE_CODE (decl) == VAR_DECL
&& DECL_TINFO_P (decl)
&& CLASS_TYPE_P (TREE_TYPE (DECL_NAME (decl))))
class_type = TREE_TYPE (DECL_NAME (decl));
else
{
/* Not a class member. */
......
2007-06-14 Geoff Keating <geoffk@apple.com>
PR 31093
* g++.dg/ext/visibility/anon4.C: New.
2007-06-14 Uros Bizjak <ubizjak@gmail.com>
PR target/32268
// PR c++/31903
// Test for anonymous namespace internal linkage, for typeinfo
// { dg-do compile }
// { dg-final { scan-assembler-not "globl.*_ZTIN*3fooE" } }
#include <typeinfo>
namespace
{
class foo
{
virtual void bar();
};
}
const std::type_info &X = typeid(foo);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment