From: Romain Geissler Date: Thu, 4 Sep 2025 12:10:12 +0000 (+0000) Subject: Fix compilation of tests/arm64/bug484935.c when using fat LTO. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc9bb3a0e4c1325b0ff428cddacea0947e945c67;p=thirdparty%2Fvalgrind.git Fix compilation of tests/arm64/bug484935.c when using fat LTO. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121719 Fix this error: /tmp/ccfnh7KQ.s: Assembler messages: /tmp/ccfnh7KQ.s:175: Error: symbol `loop' is already defined --- diff --git a/NEWS b/NEWS index 2f77a2dd6..5131a1b2e 100644 --- a/NEWS +++ b/NEWS @@ -94,6 +94,7 @@ are not entered into bugzilla tend to get forgotten about or ignored. 508779 PRE(sys_prlimit64): reorder check for memory validity 508869 x86-linux: simplify scalar test output 508958 FreeBSD: add getgroups and setgroups wrappers +509103 Fix tests/arm64/bug484935.c build with "-O2 -flto -ffat-lto-objects" To see details of a given bug, visit https://bugs.kde.org/show_bug.cgi?id=XXXXXX diff --git a/memcheck/tests/arm64/bug484935.c b/memcheck/tests/arm64/bug484935.c index ff96f078a..6ece70720 100644 --- a/memcheck/tests/arm64/bug484935.c +++ b/memcheck/tests/arm64/bug484935.c @@ -28,9 +28,9 @@ void* load_memory_content(void** ptr) "LDR x2, [%1, #16]\n" "mov %0, x0\n" "mov x3, #2000\n" - "loop:" + "1:\n" " subs x3, x3, #1\n" - " b.ne loop\n" + " b.ne 1b\n" : "=r"(result) : "r"(ptr) : "x0", "x1", "x2", "x3");