summaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-30 14:00:25 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-30 14:00:25 +0000
commitbde7be7a8a4d1c370439e63fdd95b1f19d890fd8 (patch)
treecea90bd13d074c82a94d0faa81f02b6cfc530426 /gcc/dbxout.c
parent1c6585ca5e82b33d3b67146ad3f797c673b2a606 (diff)
downloadgcc-bde7be7a8a4d1c370439e63fdd95b1f19d890fd8.tar.gz
* dwarf2out.c (is_cxx): New fn.
(add_data_member_location_attribute): Check it. * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47483 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 8b14f5d2efe..718250d4960 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -1492,7 +1492,7 @@ dbxout_type (type, full)
putc (TREE_VIA_VIRTUAL (child) ? '1' : '0', asmfile);
putc (TREE_VIA_PUBLIC (child) ? '2' : '0', asmfile);
CHARS (2);
- if (TREE_VIA_VIRTUAL (child))
+ if (TREE_VIA_VIRTUAL (child) && strcmp (lang_hooks.name, "GNU C++") == 0)
/* For a virtual base, print the (negative) offset within
the vtable where we must look to find the necessary
adjustment. */