public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5774] c++: Require C++11 for g++.dg/opt/pr110879.C [PR110879]
@ 2023-11-23 10:58 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-11-23 10:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:256d64b3460807f33ff2f70e676801bdcf908c1c

commit r14-5774-g256d64b3460807f33ff2f70e676801bdcf908c1c
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Nov 22 21:24:08 2023 +0000

    c++: Require C++11 for g++.dg/opt/pr110879.C [PR110879]
    
    The _M_realloc_insert member does not have the trivial relocation
    optimization for C++98, which seems to be why the _M_end_of_storage
    member does not get optimized away. Make this test unsupported for
    C++98.
    
    gcc/testsuite/ChangeLog:
    
            PR libstdc++/110879
            * g++.dg/opt/pr110879.C: Require C++11 or later.

Diff:
---
 gcc/testsuite/g++.dg/opt/pr110879.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/opt/pr110879.C b/gcc/testsuite/g++.dg/opt/pr110879.C
index 7f0a0a80b8a..57556605a51 100644
--- a/gcc/testsuite/g++.dg/opt/pr110879.C
+++ b/gcc/testsuite/g++.dg/opt/pr110879.C
@@ -1,4 +1,4 @@
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 // { dg-options "-O3 -fdump-tree-optimized" }
 
 #include <vector>

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

only message in thread, other threads:[~2023-11-23 10:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-23 10:58 [gcc r14-5774] c++: Require C++11 for g++.dg/opt/pr110879.C [PR110879] Jonathan Wakely

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