Hello. Following small patch set adds selftests for sreal and fibonacci_heap. I basically transformed the existing tests (for sreal) which were implemented as a GCC plugin.
Current implementation of the fibonacci heap corrupts memory in union_with and another usability change was applied to insert_node function. Patches survive regression tests and bootstrap on x86_64-linux-gnu and ppc64le-linux-gnu. Apart from that, aarch64 compiler can be built w/ --disable-bootstrap. Ready for trunk? Martin marxin (2): Add sreal to selftests Add selftests for fibonacci_heap gcc/Makefile.in | 1 + gcc/fibonacci_heap.c | 290 +++++++++++++++++++++++++++++ gcc/fibonacci_heap.h | 37 +++- gcc/selftest-run-tests.c | 2 + gcc/selftest.h | 2 + gcc/sreal.c | 112 +++++++++++ gcc/testsuite/gcc.dg/plugin/plugin.exp | 1 - gcc/testsuite/gcc.dg/plugin/sreal-test-1.c | 8 - gcc/testsuite/gcc.dg/plugin/sreal_plugin.c | 170 ----------------- 9 files changed, 435 insertions(+), 188 deletions(-) create mode 100644 gcc/fibonacci_heap.c delete mode 100644 gcc/testsuite/gcc.dg/plugin/sreal-test-1.c delete mode 100644 gcc/testsuite/gcc.dg/plugin/sreal_plugin.c -- 2.8.4