mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 22:39:55 +08:00
rtti.c (emit_tinfo_decl): Call import_export_decl.
* rtti.c (emit_tinfo_decl): Call import_export_decl. * decl2.c (import_export_decl): Set DECL_NOT_REALLY_EXTERN on tinfo decls by default. Don't mess with the builtins. From-SVN: r53417
This commit is contained in:
parent
f63ab95173
commit
aaec0464ee
13
gcc/testsuite/g++.dg/abi/rtti1.C
Normal file
13
gcc/testsuite/g++.dg/abi/rtti1.C
Normal file
@ -0,0 +1,13 @@
|
||||
// Test that we don't emit the type_info for a polymorphic class other than
|
||||
// with the vtable.
|
||||
|
||||
struct A {
|
||||
virtual ~A();
|
||||
};
|
||||
|
||||
void f ()
|
||||
{
|
||||
throw A();
|
||||
}
|
||||
|
||||
// { dg-final { scan-assembler-dem-not {typeinfo for A[: \t\n]} } }
|
Loading…
Reference in New Issue
Block a user