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

hppa: Fix checking errors in pa.cc

Removes unnecessary constant pool address checks in hppa's pa.cc to resolve compiler errors.

This commit corrects an issue in the hppa backend’s pa.cc file by removing checks for constant pool addresses. These checks were causing compilation errors because constant pool addresses are handled as special SYMBOL_REF references. The change simplifies the code by removing redundant checks in pa_emit_sequence, pa_legitimate_constant_p, and pa_legitimate_address_p functions.

In Details

The hppa backend's emit path was incorrectly applying checks for CONSTANT_POOL_ADDRESS_P on SYMBOL_REF operands. This commit removes these redundant checks in pa_emit_move_sequence, pa_legitimate_constant_p, and pa_legitimate_address_p, aligning the code with the correct handling of symbol references in constant pools.

For Context
SYMBOL_REF
A GCC internal representation of a symbol reference, used for variables, functions, and other named entities in the code.
CONSTANT_POOL_ADDRESS_P
A predicate in GCC's internal representation that checks if an operand refers to an address within the constant pool.
hppa
Hewlett-Packard's Precision Architecture, a family of RISC computer architectures for which GCC provides a backend.
Filed Under: hppacompiler error