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 fdum...@gcc.gnu.org>
* testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
François
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.
//