GCC Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gcc

Use correct allocno when building conflicts in IRA.

A bug in the IRA conflict building process has been fixed by using the correct allocno, improving internal assertions.

A bug was fixed in the IRA (Integrated Register Allocator) conflict building process where a wrong conflict allocno was being used. While the allocno was only used in an assertion, the assertion was always true and thus ineffective. The fix ensures the correct conflicting allocno is used, making the assertion meaningful.

In Details

In ira-conflicts.cc, the build_object_conflicts function was using an incorrect allocno when building conflicts. This allocno is used in an assertion, but the incorrect value made the assertion always true. This commit corrects the allocno value.

For Context

This commit addresses a minor bug in the register allocation phase of the compiler related to how conflicts between variables are tracked. Register allocation is the process of assigning program variables to physical registers in the CPU. The bug involved an internal check (assertion) that was not functioning correctly due to an incorrect identifier being used. While this didn't directly affect the generated code, it hindered the compiler's ability to detect potential issues during development. This commit improves the correctness and reliability of internal compiler checks.

Filed Under: iraregister allocationbugfix