GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
arm

Arm minipool processing now skips debug instructions

Fixes ARM minipool processing to ignore debug instructions, ensuring relevance to the process.

The ARM backend’s minipool processing logic has been updated to correctly skip debug instructions, alongside existing handling for notes. Debug instructions, like notes, are not relevant for minipool construction. By consistently using next_nonnote_nondebug_insn, the code now accurately advances through the instruction chain, ensuring that only relevant instructions are considered during minipool building. This fix addresses an issue that may have persisted since the introduction of debug instructions.

In Details

The ARM minipool generation logic in config/arm/minipool.cc needs to iterate over instructions relevant to pool placement. This commit ensures that both debug instructions and notes are skipped by consistently using next_nonnote_nondebug_insn in barrier_cost, create_fix_barrier, and place_minipools. This guarantees that the minipool construction process only considers actual code instructions, not debugging metadata.

Filed Under: armbackenddebugging