diff options
author | Jason Merrill <jason@redhat.com> | 2001-11-30 09:00:25 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-11-30 09:00:25 -0500 |
commit | 1d3d6b1e6db42c2a95d1136431c6c6eee78ea93f (patch) | |
tree | cea90bd13d074c82a94d0faa81f02b6cfc530426 /gcc/dbxout.c | |
parent | 3248917b3e4d768bb0e949b18f73e89f4a5d9da8 (diff) | |
download | gcc-1d3d6b1e6db42c2a95d1136431c6c6eee78ea93f.zip gcc-1d3d6b1e6db42c2a95d1136431c6c6eee78ea93f.tar.gz gcc-1d3d6b1e6db42c2a95d1136431c6c6eee78ea93f.tar.bz2 |
dwarf2out.c (is_cxx): New fn.
* 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++.
From-SVN: r47483
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 8b14f5d..718250d 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. */ |