On Wed, May 20, 2026 at 06:58:10PM -0700, Andrew Pinski wrote:
> On Tue, May 19, 2026 at 10:09 PM Haochen Jiang <[email protected]> 
> wrote:
> >
> > On Linux/x86_64,
> >
> > acfdad706d8acca6c4ed6ef3b63c2e02f1c47881 is the first bad commit
> > commit acfdad706d8acca6c4ed6ef3b63c2e02f1c47881
> > Author: Nathan Myers <[email protected]>
> > Date:   Fri Apr 3 23:55:39 2026 -0400
> >
> >     libstdc++: Use allocate_at_least in vector, string (P0401) [PR118030]
> >
> > caused
> >
> > FAIL: g++.dg/opt/shrink-wrapping-vector-1.C  -std=gnu++98  scan-rtl-dump 
> > pro_and_epilogue "Performing shrink-wrapping"
> 
> I filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125400 for the
> missed optimization which is causing the missed shrink wrapping.
> If I can figure out how to xfail it for C++98 only I will unless
> someone beats me to it. Note It fails on all the specified targets in
> the testcase as it is generic issue.

It is actually not C++98 only.
I see
 FAIL: g++.dg/opt/shrink-wrapping-vector-1.C  -std=gnu++11  scan-rtl-dump 
pro_and_epilogue "Performing shrink-wrapping"
 FAIL: g++.dg/opt/shrink-wrapping-vector-1.C  -std=gnu++14  scan-rtl-dump 
pro_and_epilogue "Performing shrink-wrapping"
 FAIL: g++.dg/opt/shrink-wrapping-vector-1.C  -std=gnu++17  scan-rtl-dump 
pro_and_epilogue "Performing shrink-wrapping"
 FAIL: g++.dg/opt/shrink-wrapping-vector-1.C  -std=gnu++98  scan-rtl-dump 
pro_and_epilogue "Performing shrink-wrapping"
(I'm always testing with
GXX_TESTSUITE_STDS=98,11,14,17,20,23,26
) so { xfail c++17_down } would do the job I think.

        Jakub

Reply via email to