GCC Newspaper
JULY 29, 2026
Date
/
Architectures
Components
Topics
News & Policy
testsuite

testsuite: Fix gcc.target/x86_64/abi tests on NetBSD

Fixes NetBSD x86_64 ABI test failures by adjusting isspace argument casting and adding a flag.

This commit addresses failing x86_64 ABI tests on NetBSD by applying two fixes. First, it casts the argument to isspace to unsigned char to resolve a char-subscript warning. Second, it mimics a FreeBSD fix by adding the —omit-rbp-clobbers flag for specific tests on NetBSD to prevent an assembler error.

In Details

This commit adjusts C testsuite code for x86_64 ABI compliance on NetBSD. It fixes a char-subscript warning in long_optarg by casting to unsigned char and modifies the runtest_ms_sysv script to include --omit-rbp-clobbers to resolve an assembler error related to bp usage when generating ms-sysv ABI code.

Filed Under: testsuitex86_64netbsdabi