]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix tests/x86/incdec_alt.c asm for GCC10.
authorMark Wielaard <mark@klomp.org>
Fri, 24 Jan 2020 10:26:25 +0000 (11:26 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 24 Jan 2020 10:43:10 +0000 (11:43 +0100)
commit2dab3249867615055a680cad7fccb22411587579
tree886c3771b74adb1d7da5aac53243b35383aa1bce
parent4c39fd9a0098648e19ab6e436a515dc0d9fd387e
Fix tests/x86/incdec_alt.c asm for GCC10.

Thanks to Jakub Jelinek. The test is broken. It blindly assumes the
toplevel inline asm is placed into some sensible section, but that is
a wrong assumption. The right thing is to start the inline asm with
.text directive and end with .previous. The reason gcc 10 breaks it
is the -fno-common default, the int r1, ... vars are emitted into .bss
section and that is the section that is current when the inline asm is
emitted previously they were in .common at the end of the assembly file.
none/tests/x86/incdec_alt.c