Landing: 2f65efd9b606
Project / Subsystem
binutils / binutils/z80
Date
2026-09-08
Author
Jan Beulich <jbeulich@sourceware.org>
Commit
2f65efd9b6061ff1870f49aaa49edb1529368a73
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- binutils/z80
- patch_id
- —
- commit_hash
- 2f65efd9b6061ff1870f49aaa49edb1529368a73
- source_type
- public_inbox
- headline
- Fix z80 assembler build with newer compilers
- tldr
- Adds missing 'const' to a pointer in z80 assembler to fix build errors with modern GCC.
- author
- Jan Beulich <jbeulich@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • build
- • z80
- • compiler compatibility
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-08T00:00:00.000Z
This commit resolves a build error in the z80 assembler (tc-z80.c) that occurs with newer versions of GCC and glibc. The issue stems from bsearch() and other functions propagating const-correctness, which conflicted with a non-const pointer used in the assembler’s internal tables. Adding the const qualifier to the pointer fixes the build without affecting functionality, as the pointer is never written to.