From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4627 invoked by alias); 3 Dec 2002 20:36: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 4613 invoked by uid 71); 3 Dec 2002 20:36:02 -0000 Date: Tue, 03 Dec 2002 12:36:00 -0000 Message-ID: <20021203203602.4611.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: RE: c++/8684: ABI Issue: gcc3.2 is not reusing tail-padding.. Reply-To: Wolfgang Bangerth X-SW-Source: 2002-12/txt/msg00168.txt.bz2 List-Id: The following reply was made to PR c++/8684; it has been noted by GNATS. From: Wolfgang Bangerth To: gcc-gnats@gcc.gnu.org Cc: Subject: RE: c++/8684: ABI Issue: gcc3.2 is not reusing tail-padding.. Date: Tue, 3 Dec 2002 14:35:00 -0600 (CST) ---------- Forwarded message ---------- Date: Tue, 3 Dec 2002 12:08:57 -0800 From: "Davasam, Sunil K" To: bangerth@dealii.org Subject: RE: c++/8684: ABI Issue: gcc3.2 is not reusing tail-padding.. Sorry for the late reply. I tried with intel 6.0,7.0 compilers on Linux. In both cases I am getting same result. Here are the details. [skdavasa@crystal tmp]$ cat t4.cpp #include struct C1 { int i; char c; }; struct C2 : C1 { char c; }; int main() { printf("sizeof (C1) = %d\n", sizeof (C1) ); printf("sizeof (C2) = %d\n", sizeof (C2) ); return 0; } [skdavasa@crystal tmp]$ icpc t4.cpp t4.cpp [skdavasa@crystal tmp]$ a.out sizeof (C1) = 8 sizeof (C2) = 8 [skdavasa@crystal ~/tmp]$ icpc -V Intel(R) C++ Compiler for 32-bit applications, Version 6.0.1 Build 20021018Z Copyright (C) 1985-2002 Intel Corporation. All rights reserved. [skdavasa@crystal ~/tmp]$ source ~/.ia32_productrc 70 [skdavasa@crystal ~/tmp]$ icpc -V Intel(R) C++ Compiler for 32-bit applications, Version 7.0 Build 20021021Z Copyright (C) 1985-2002 Intel Corporation. All rights reserved. [skdavasa@crystal ~/tmp]$ icpc t4.cpp [skdavasa@crystal ~/tmp]$ a.out sizeof (C1) = 8 sizeof (C2) = 8 --- Thanks & Regards, -Sunil. -----Original Message----- From: bangerth@dealii.org [mailto:bangerth@dealii.org] Sent: Tuesday, November 26, 2002 7:30 PM To: gcc-bugs@gcc.gnu.org; gcc-prs@gcc.gnu.org; nobody@gcc.gnu.org; Davasam, Sunil K Subject: Re: c++/8684: ABI Issue: gcc3.2 is not reusing tail-padding.. Synopsis: ABI Issue: gcc3.2 is not reusing tail-padding.. State-Changed-From-To: open->feedback State-Changed-By: bangerth State-Changed-When: Tue Nov 26 19:29:32 2002 State-Changed-Why: Between 3.1.1 and 3.2, a number of ABI bugs have been fixed. This may be one of them. The question I have for you, is which version of the Intel compiler you have been using? If I use icc 6.0 on Linux, I get 8 and 12, so exactly the same results as with gcc3.2. So to me it seems as if they were now compatible in this respect. Thanks Wolfgang http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8684