diff --git a/0001-gcc-c-torture-use-fwrapv-for-950704-1.c-signed-overf.patch b/0001-gcc-c-torture-use-fwrapv-for-950704-1.c-signed-overf.patch new file mode 100644 index 0000000..8acba9e --- /dev/null +++ b/0001-gcc-c-torture-use-fwrapv-for-950704-1.c-signed-overf.patch @@ -0,0 +1,26 @@ +From d10245e73a71cee2beb737863ffe8f146f4d47e0 Mon Sep 17 00:00:00 2001 +From: antoine moynault +Date: Thu, 21 Dec 2023 16:41:50 +0100 +Subject: [PATCH] [gcc-c-torture] use -fwrapv for 950704-1.c (signed overflow) + (#70) + +test fails since #76044 +--- + SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt b/SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt +index 4788755c..03425811 100644 +--- a/SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt ++++ b/SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt +@@ -181,6 +181,7 @@ file(GLOB TestRequiresFWrapV CONFIGURE_DEPENDS + 20040409-1.c + 20040409-2.c + 20040409-3.c ++ 950704-1.c + ) + + # Tests that require -Wno-return-type +-- +2.44.0 + diff --git a/llvm-test-suite.spec b/llvm-test-suite.spec index c0b8748..e3bdfbf 100644 --- a/llvm-test-suite.spec +++ b/llvm-test-suite.spec @@ -6,7 +6,7 @@ Name: llvm-test-suite Version: %{llvm_test_suite_version}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: C/C++ Compiler Test Suite License: NCSA and BSD and GPLv1 and GPLv2+ and GPLv2 and MIT and Python and Public Domain and CRC32 and AML and Rdisc and ASL 2.0 and LGPLv3 @@ -27,6 +27,8 @@ Source1: license-files.txt Source2: pkg_test_suite.sh BuildArch: noarch +Patch: 0001-gcc-c-torture-use-fwrapv-for-950704-1.c-signed-overf.patch + # We need python3-devel for pathfix.py. BuildRequires: python3-devel @@ -80,6 +82,9 @@ cp -R %{_builddir}/%{test_suite_srcdir}/* %{buildroot}%{_datadir}/llvm-test-suit %changelog +* Tue Apr 16 2024 Tulio Magno Quites Machado Filho - 17.0.6-2 +- Backport a fix from upstream + * Tue Nov 28 2023 Tulio Magno Quites Machado Filho - 17.0.6-1 - Update to LLVM 17.0.6