Skip to content

riscos-crossdev 1.14

Latest

Choose a tag to compare

@adyoull adyoull released this 26 Nov 16:40

riscos-crossdev 1.14

UnixLib 5.0.3.12

The toolchain is built with riscos-unixlib 5.0.3.12:
5.0.3.11's fixes and speed-ups, and 5.0.3.12's word-aligned data.
Rebuild to pick it up; everything links unchanged.

  • __thread and C++ thread_local are one per thread. In a static
    program that made threads, every thread shared them unless the program
    happened to call pthread_cancel. If a threaded port sets one in one
    thread and reads it in another, check it.

  • memcpy and setjmp no longer die on a fresh stack page. That
    failure showed as "ARMEABISupport could not handle an abort".

  • Thread fixes:

    • a thread exiting with thread-specific values no longer races malloc;
    • pthread_suspend_thread, pthread_rwlock_init, pthread_once and
      timed condition waits are fixed.
  • Other fixes: socketpair can't hang, and bcopy copies the right
    way. scanf takes ll, hh, j, z and t, fread/fwrite take
    very large counts, and .fini_array runs at exit. mkdtemp is new.

  • sysconf(_SC_NPROCESSORS_ONLN) is 1 for code built with the new
    headers (it was 2048). If a port wants more worker threads, set
    UnixLib$Processors in !Run.

  • Faster on a Pi 4:

    • strstr: about 8 times;
    • memcmp and strcasecmp: 4 times;
    • strcmp, strncpy and strrchr: 2 to 3 times;
    • pthread_getspecific and thread_local: 15 times;
    • base-10 strtol/atoi: twice.
  • UnixLib aligns its own data now. 1.13 added a .balign 4 when it
    built the toolchain; 5.0.3.12 has it in its own sources, so the build no
    longer needs it. The alignment check after the build stays.

The toolchain's UnixLib is the release's: every object's code, data and
relocations are the same as riscos-unixlib's own 5.0.3.12 libunixlib.a.

The optional GCC 16 toolchain

riscos-crossdev-toolchain-gcc16-1.14-x86_64-linux.tar.xz is on this
release as well. It has the same GCC 16.2.0 as 1.13, linked with UnixLib
5.0.3.12. GCC 10.2 stays the default.

Tested

make check passes with both toolchains, and in a clean clone of v1.14
with the prebuilt tarball.

Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.