Landing: 4b78815305fa

Project / Subsystem

gcc / gcc

Date

2026-07-01

Author

Andrew Stubbs

Commit

4b78815305fa285ad223f08b52128afdae782a62

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
4b78815305fa285ad223f08b52128afdae782a62
source_type
github
headline
i386, rtl: Consolidate register class macros into a hook
tldr
Replaces multiple register class macros with a single target hook for better flexibility.
author
Andrew Stubbs
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • i386
  • • rtl
  • • codegen
  • • refactor
discussion_id_link
—
bugzilla_pr
—
date
2026-07-01T00:00:00.000Z

This commit refactors the definition of register class constraints in GCC’s RTL (Register Transfer Language) by replacing several macros (BASE_REG_CLASS, MODE_BASE_REG_CLASS, etc.) with a single, unified target hook TARGET_BASE_REG_CLASS. This change simplifies the target definition interface and prepares for future extensions, such as adding support for memory operands.