diff --git a/valgrind-3.15.0-gcc-10-i686-asm-test.patch b/valgrind-3.15.0-gcc-10-i686-asm-test.patch new file mode 100644 index 0000000..943410e --- /dev/null +++ b/valgrind-3.15.0-gcc-10-i686-asm-test.patch @@ -0,0 +1,20 @@ +diff --git a/none/tests/x86/incdec_alt.c b/none/tests/x86/incdec_alt.c +index 2db324275..b8ff5c07e 100644 +--- a/none/tests/x86/incdec_alt.c ++++ b/none/tests/x86/incdec_alt.c +@@ -8,6 +8,7 @@ int r1,r2,r3,r4,r5,r6,r7,r8,a1,a2; + + extern void foo ( void ); + asm("\n" ++".text\n" + VG_SYM(foo) ":\n" + "\tpushl $0\n" + "\tpopfl\n" +@@ -49,6 +50,7 @@ VG_SYM(foo) ":\n" + "\tpopl " VG_SYM(r8) "\n" + + "\tret\n" ++".previous\n" + ); + + int main ( void ) diff --git a/valgrind.spec b/valgrind.spec index 41736ff..ddb4cf6 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -139,6 +139,9 @@ Patch20: valgrind-3.15.0-ptrace-siginfo.patch # RHBZ#1794482 guest_s390_defs.h:291: multiple definition of `s390x_vec_op_t' Patch21: valgrind-3.15.0-gcc-10-typedef-enum.patch +# GCC10 build error bad asm on i686 +Patch22: valgrind-3.15.0-gcc-10-i686-asm-test.patch + BuildRequires: glibc-devel %if %{build_openmpi} @@ -296,6 +299,7 @@ Valgrind User Manual for details. %patch20 -p1 %patch21 -p1 +%patch22 -p1 %build @@ -516,6 +520,9 @@ fi %endif %changelog +* Fri Jan 24 2020 Mark Wielaard +- Add valgrind-3.15.0-gcc-10-i686-asm-test.patch + * Thu Jan 23 2020 Mark Wielaard - 3.15.0-13 - Add valgrind-3.15.0-gcc-10-typedef-enum.patch