projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f63ab95
)
rtti.c (emit_tinfo_decl): Call import_export_decl.
author
Jason Merrill
<jason@gcc.gnu.org>
Mon, 13 May 2002 08:00:49 +0000
(
04:00
-0400)
committer
Jason Merrill
<jason@gcc.gnu.org>
Mon, 13 May 2002 08:00:49 +0000
(
04:00
-0400)
* 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
gcc/testsuite/g++.dg/abi/rtti1.C
[new file with mode: 0644]
patch
|
blob
diff --git a/gcc/testsuite/g++.dg/abi/rtti1.C
b/gcc/testsuite/g++.dg/abi/rtti1.C
new file mode 100644
(file)
index 0000000..
4535296
--- /dev/null
+++ b/
gcc/testsuite/g++.dg/abi/rtti1.C
@@ -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]} } }