Landing: 60b576999dae

Project / Subsystem

gcc / m68k

Date

2026-06-05

Author

Andreas Schwab

Commit

60b576999dae7d3dc2b634680ff2d510ab47a438

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
m68k
patch_id
commit_hash
60b576999dae7d3dc2b634680ff2d510ab47a438
source_type
github
headline
M68k fixes invalid EXECUTE_IF_SET_IN_HARD_REG_SET conversion
tldr
This patch corrects a signedness issue in register number handling and a missing declaration within the m68k backend for GCC, resolving a bug in register usage…
author
Andreas Schwab
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • m68k
  • bugfix
  • register-allocation
discussion_id_link
bugzilla_pr
date
2026-06-05T00:00:00.000Z

The m68k backend for GCC had an issue with the m68k_conditional_register_usage function where the variable storing register numbers had an incorrect signedness, leading to invalid conversions when using EXECUTE_IF_SET_IN_HARD_REG_SET. Additionally, the m68k_zero_call_used_regs function was missing a necessary declaration. This patch addresses both of these problems, ensuring correct register usage and preventing potential miscompilations or crashes on the m68k architecture.