public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: [PATCH, testsuite, ARM] Change to expected failure for g++.dg/abi/local1.C on ARM target
       [not found] <9963.41556679017$1315963827@news.gmane.org>
@ 2011-09-20  2:08 ` Jason Merrill
  0 siblings, 0 replies; 3+ messages in thread
From: Jason Merrill @ 2011-09-20  2:08 UTC (permalink / raw)
  To: Jiangning Liu; +Cc: gcc-patches

On 09/13/2011 09:29 PM, Jiangning Liu wrote:
> In "C++ ABI for the ARM architecture", it says,
>
> ============================
>
> This runs contrary to §2.9.1 of [GC++ABI] which states:
>
> It is intended that two type_info pointers point to equivalent type
> descriptions if and only if the pointers are equal. An implementation must
> satisfy this constraint, e.g. by using symbol preemption, COMDAT sections,
> or other mechanisms.
>
> Fortunately, we can ignore this requirement without violating the C++
> standard provided that:
>
> * type_info::operator== and type_info::operator!= compare the strings
> returned by type_info::name(), not just the pointers to the RTTI objects and
> their names.
>
> * No reliance is placed on the address returned by type_info::name(). (That
> is, t1.name() != t2.name() does not imply that t1 != t2).
>
> ============================

This test is not specific to the normal C++ ABI, it's standard C++; if 
it fails on ARM EABI targets, that's a bug that should be fixed, 
probably using the same initial '*' trick that we use on other platforms.

Jason

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH, testsuite, ARM] Change to expected failure for g++.dg/abi/local1.C on ARM target
  2011-09-14  7:47 Jiangning Liu
@ 2011-09-14 15:31 ` Joseph S. Myers
  0 siblings, 0 replies; 3+ messages in thread
From: Joseph S. Myers @ 2011-09-14 15:31 UTC (permalink / raw)
  To: Jiangning Liu; +Cc: gcc-patches

On Wed, 14 Sep 2011, Jiangning Liu wrote:

> +// { dg-do run { xfail { arm*-*-eabi* } } }

That's specific to bare-metal targets rather than all ARM EABI (such as 
arm-none-linux-gnueabi or arm-none-symbianelf), is that your intent?  If 
you wanted to cover all ARM EABI targets you'd use the arm_eabi 
effective-target.  But maybe you actually want a new effective-target 
keyword for targets defining __GXX_TYPEINFO_EQUALITY_INLINE to 0 rather 
than just ARM EABI?  I've seen this test fail on i686-mingw32 and 
m68k-uclinux as well.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH, testsuite, ARM] Change to expected failure for g++.dg/abi/local1.C on ARM target
@ 2011-09-14  7:47 Jiangning Liu
  2011-09-14 15:31 ` Joseph S. Myers
  0 siblings, 1 reply; 3+ messages in thread
From: Jiangning Liu @ 2011-09-14  7:47 UTC (permalink / raw)
  To: gcc-patches

Here comes a patch to change the case g++.dg/abi/local1.C to be expected
failure for ARM target.

In "C++ ABI for the ARM architecture", it says,

============================

This runs contrary to §2.9.1 of [GC++ABI] which states:

It is intended that two type_info pointers point to equivalent type
descriptions if and only if the pointers are equal. An implementation must
satisfy this constraint, e.g. by using symbol preemption, COMDAT sections,
or other mechanisms.

Fortunately, we can ignore this requirement without violating the C++
standard provided that:

* type_info::operator== and type_info::operator!= compare the strings
returned by type_info::name(), not just the pointers to the RTTI objects and
their names.

* No reliance is placed on the address returned by type_info::name(). (That
is, t1.name() != t2.name() does not imply that t1 != t2).

============================

The patch is,

diff --git a/gcc/testsuite/g++.dg/abi/local1.C
b/gcc/testsuite/g++.dg/abi/local1.C
index 518193c..7f08a8f 100644
--- a/gcc/testsuite/g++.dg/abi/local1.C
+++ b/gcc/testsuite/g++.dg/abi/local1.C
@@ -1,4 +1,4 @@
-// { dg-do run }
+// { dg-do run { xfail { arm*-*-eabi* } } }
 // { dg-additional-sources "local1-a.cc" }
 
 #include <typeinfo>

ChangeLog:

2011-09-14  Jiangning Liu  <jiangning.liu@arm.com>

	* g++.dg/abi/local1.C: Change to XFAIL for ARM EABI target.

Thanks,
-Jiangning



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-20  0:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <9963.41556679017$1315963827@news.gmane.org>
2011-09-20  2:08 ` [PATCH, testsuite, ARM] Change to expected failure for g++.dg/abi/local1.C on ARM target Jason Merrill
2011-09-14  7:47 Jiangning Liu
2011-09-14 15:31 ` Joseph S. Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).