This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9193: Testsuite error on mips-irix6 withg++.dg/abi/empty6.C (missing -Wabi warning)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, "gcc-gnats at gcc dot gnu dot org" <gcc-gnats at gcc dot gnu dot org>
- Cc: "gcc-bugs at gcc dot gnu dot org" <gcc-bugs at gcc dot gnu dot org>
- Date: Wed, 08 Jan 2003 09:47:23 -0800
- Subject: Re: c++/9193: Testsuite error on mips-irix6 withg++.dg/abi/empty6.C (missing -Wabi warning)
--On Wednesday, January 08, 2003 12:37:50 PM -0500 "Kaveh R. Ghazi"
<ghazi@caip.rutgers.edu> wrote:
> From: Mark Mitchell <mark@codesourcery.com>
>
> > and indeed no -Wabi warning is issued. The failure occurs only when
I > > run the testsuite with -mabi=64, it succeeds without that flag as
noted > > in the test report above.
>
> That's correct behavior; it means that there's no change under that
ABI.
For my own education, would you please help me understand why the
irix6 -mabi=n32 vs -mabi=64 flag affects this, but other 64 bit
platforms, or sparc -m64, don't see a change?
Essentially, there's no logical answer. We were assuming that
DECL_FIELD_OFFSET meant something it only means sometimes. On platforms
where it meant what we thought it meant, we don't need to warn; elsewhere,
we do.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com