public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Fix 61347 testcase in alternative modes
       [not found] ` <20150601200918.GF17401@redhat.com>
@ 2015-06-03 20:46   ` François Dumont
  0 siblings, 0 replies; only message in thread
From: François Dumont @ 2015-06-03 20:46 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 881 bytes --]

On 01/06/2015 22:09, Jonathan Wakely wrote:
> On 01/06/15 22:04 +0200, François Dumont wrote:
>> Hi
>>
>>    I can't find how to fix 61347 for alternative modes. I started 
>> with debug mode by providing a forward declaration for safe iterator 
>> type which return to the __distance on normal iterator but gcc still 
>> doesn't consider it as a builtin constant.
>>
>>    I guess the problem might come from compilations options, so is it 
>> that we should simply add a dg-require-normal-mode to have this test 
>> unsupported ? Otherwise any advise to fix this test ?
>
> Making it unsupported is OK. It's only testing that an optimisation
> works, but it's OK if it only works in normal mode that's fine.
>
Attached patch applied then.

2015-06-03  François Dumont  fdumont@gcc.gnu.org>

     * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.

François


[-- Attachment #2: 61347.patch --]
[-- Type: text/x-patch, Size: 403 bytes --]

Index: testsuite/23_containers/list/61347.cc
===================================================================
--- testsuite/23_containers/list/61347.cc	(revision 224099)
+++ testsuite/23_containers/list/61347.cc	(working copy)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++11 -O2 -D_GLIBCXX_USE_CXX11_ABI" }
+// { dg-require-normal-mode "" }
 
 // Copyright (C) 2015 Free Software Foundation, Inc.
 //

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-03 20:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <556CBAC4.9050707@gmail.com>
     [not found] ` <20150601200918.GF17401@redhat.com>
2015-06-03 20:46   ` Fix 61347 testcase in alternative modes François Dumont

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).