From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17773 invoked by alias); 30 Jul 2002 08:26:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 17752 invoked by uid 71); 30 Jul 2002 08:26:02 -0000 Resent-Date: 30 Jul 2002 08:26:02 -0000 Resent-Message-ID: <20020730082602.17751.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, grigory@stl.sarov.ru Received: (qmail 16479 invoked by uid 61); 30 Jul 2002 08:18:20 -0000 Message-Id: <20020730081820.16478.qmail@sources.redhat.com> Date: Tue, 30 Jul 2002 01:26:00 -0000 From: grigory@stl.sarov.ru Reply-To: grigory@stl.sarov.ru To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/7442: cxxabi.h does not match the C++ ABI X-SW-Source: 2002-07/txt/msg00785.txt.bz2 List-Id: >Number: 7442 >Category: libstdc++ >Synopsis: cxxabi.h does not match the C++ ABI >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Jul 30 01:26:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Grigory Zagorodnev >Release: 3.1.1 >Organization: >Environment: host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ./configure --enable-threads >Description: There is a couple of discrepancies between G++ implementation of 'cxxabi.h' file and the C++ ABI. I. Member name difference ------------------------- The C++ ABI defines that... 2.9.5 RTTI Layout 9 The abi::__pointer_to_member_type_info type adds one field to abi::__pbase_type_info: class __pointer_to_member_type_info : public __pbase_type_info { public: const abi::__class_type_info *__context; }; G++ implementation is the following: --- cxxabi.h ------------------------------------------------------------ class __pointer_to_member_type_info : public __pbase_type_info { /* abi defined member variables */ public: __class_type_info *__context_class; /* class of the member */ ------------------------------------------------------------------------- II. Class name difference ------------------------- Class '__base_class_type_info' specifyed by the C++ ABI, declared with the name '__base_class_info' in the G++'s cxxabi.h file. Moreover, name of the member __base_type is different too. 2.9.5 RTTI Layout 6. Three different types are used to represent user type information: __base_info[] is an array of base class descriptions -- one for every direct proper base. Each description is of the type: struct abi::__base_class_type_info { public: const __class_type_info *__base_type; long __offset_flags; enum __offset_flags_masks { __virtual_mask = 0x1, __public_mask = 0x2, __offset_shift = 8 }; }; --- G++'s cxxabi.h ------------------------------------------------------ class __base_class_info { /* abi defined member variables */ public: const __class_type_info *__base; /* base class type */ long __offset_flags; /* offset and info */ ------------------------------------------------------------------------- >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: