libstdc++: Work around test failures using -mno-tree-vrp
authorMatthias Kretz <kretz@kde.org>
Wed, 3 Feb 2021 15:49:30 +0000 (15:49 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 3 Feb 2021 15:49:30 +0000 (15:49 +0000)
This is necessary to avoid failures resulting from PR98834.

libstdc++-v3/ChangeLog:

* testsuite/Makefile.am: Warn about the workaround. Add
-fno-tree-vrp to CXXFLAGS passed to the check_simd script.
Improve initial user feedback from make check-simd.
* testsuite/Makefile.in: Regenerated.

libstdc++-v3/testsuite/Makefile.am
libstdc++-v3/testsuite/Makefile.in

index 2d3ad481dbae432b5f669c73eabe290c8c458c9a..ba5023a8b548bf4987220fe4ac23155be003b891 100644 (file)
@@ -191,8 +191,10 @@ check-simd: $(srcdir)/experimental/simd/generate_makefile.sh \
            ${glibcxx_srcdir}/scripts/check_simd \
            testsuite_files_simd \
            ${glibcxx_builddir}/scripts/testsuite_flags
+       @echo "WARNING: Adding -fno-tree-vrp to CXXFLAGS to work around PR98834."
        @rm -f .simd.summary
-       ${glibcxx_srcdir}/scripts/check_simd "${glibcxx_srcdir}" "${glibcxx_builddir}" "$(CXXFLAGS)" | \
+       @echo "Generating simd testsuite subdirs and Makefiles ..."
+       @${glibcxx_srcdir}/scripts/check_simd "${glibcxx_srcdir}" "${glibcxx_builddir}" "$(CXXFLAGS) -fno-tree-vrp" | \
          while read subdir; do \
            $(MAKE) -C "$${subdir}"; \
            tail -n20 $${subdir}/simd_testsuite.sum | \
index ac6207ae75c1dd0d374159751f124a8cc43a2d99..c9dd7f5da61e2b120f88a77b8156dc3417962003 100644 (file)
@@ -716,8 +716,10 @@ check-simd: $(srcdir)/experimental/simd/generate_makefile.sh \
            ${glibcxx_srcdir}/scripts/check_simd \
            testsuite_files_simd \
            ${glibcxx_builddir}/scripts/testsuite_flags
+       @echo "WARNING: Adding -fno-tree-vrp to CXXFLAGS to work around PR98834."
        @rm -f .simd.summary
-       ${glibcxx_srcdir}/scripts/check_simd "${glibcxx_srcdir}" "${glibcxx_builddir}" "$(CXXFLAGS)" | \
+       @echo "Generating simd testsuite subdirs and Makefiles ..."
+       @${glibcxx_srcdir}/scripts/check_simd "${glibcxx_srcdir}" "${glibcxx_builddir}" "$(CXXFLAGS) -fno-tree-vrp" | \
          while read subdir; do \
            $(MAKE) -C "$${subdir}"; \
            tail -n20 $${subdir}/simd_testsuite.sum | \