libiberty: sync with gcc

Import the following commits from GCC as of r16-3056-gca2169c65bd169:
	0d0837df697 libiberty: disable logging of list content for doubly-linked list tests
This commit is contained in:
Matthieu Longo
2025-08-04 11:04:13 +01:00
parent a41e36fbe2
commit d45e8bff0b
2 changed files with 21 additions and 3 deletions

View 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

View 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;
}