]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix compilation of tests/arm64/bug484935.c when using fat LTO.
authorRomain Geissler <romain.geissler@amadeus.com>
Thu, 4 Sep 2025 12:10:12 +0000 (12:10 +0000)
committerMark Wielaard <mark@klomp.org>
Thu, 4 Sep 2025 13:48:04 +0000 (15:48 +0200)
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

NEWS
memcheck/tests/arm64/bug484935.c

diff --git a/NEWS b/NEWS
index 2f77a2dd67c5e75d7b03ee6ce47f8a4e0d7631b9..5131a1b2e93319ead503bc0960c424f5ea01d5e0 100644 (file)
--- 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
index ff96f078aeed8ad4ec4414f334591a03785f46fd..6ece70720541a26faa4e3a56532eadd8dbc979c3 100644 (file)
@@ -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");