]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
libiberty: sync with gcc
authorMatthieu Longo <matthieu.longo@arm.com>
Mon, 4 Aug 2025 10:04:13 +0000 (11:04 +0100)
committerMatthieu Longo <matthieu.longo@arm.com>
Thu, 7 Aug 2025 09:33:44 +0000 (10:33 +0100)
Import the following commits from GCC as of r16-3056-gca2169c65bd169:
0d0837df697 libiberty: disable logging of list content for doubly-linked list tests

libiberty/ChangeLog
libiberty/testsuite/test-doubly-linked-list.c

index 2ae5626ed2e2cee387caff0f921315defb854ae7..b072d0bed5289dcb416da4f6645f3a89370df35b 100644 (file)
@@ -1,3 +1,14 @@
+2025-08-06  Matthieu Longo  <matthieu.longo@arm.com>
+
+       * testsuite/test-doubly-linked-list.c: disable debug logging on
+       stdout.
+
+2025-07-09  Matthieu Longo  <matthieu.longo@arm.com>
+
+       * Makefile.in: Add new header.
+       * testsuite/Makefile.in: Add new test.
+       * testsuite/test-doubly-linked-list.c: New test.
+
 2025-05-13  Andreas Schwab  <schwab@suse.de>
 
        * regex.c (regex_compile): Don't write beyond array bounds when
index 1e1fc637653770489d9bf25c38331576fde1f731..93fe19a27aea2cb765bd327a6e5457d5611aaff0 100644 (file)
@@ -155,19 +155,26 @@ bool check(const char *op,
   bool success = true;
   bool res;
 
-  l_print (wrapper->first);
+#define DUMP_LIST 0
+
+  if (DUMP_LIST)
+    l_print (wrapper->first);
+
   res = run_test (expect, wrapper, false);
   printf ("%s: test-linked-list::%s: check forward conformity\n",
          res ? "PASS": "FAIL", op);
   success &= res;
 
-  l_reverse_print (wrapper->last);
+  if (DUMP_LIST)
+    l_reverse_print (wrapper->last);
+
   res = run_test (expect, wrapper, true);
   printf ("%s: test-linked-list::%s: check backward conformity\n",
          res ? "PASS": "FAIL", op);
   success &= res;
 
-  printf("\n");
+  if (DUMP_LIST)
+    printf("\n");
 
   return success;
 }