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

i386: Use psABI note infrastructure for complex float members

i386 ABI classification for complex float members now uses psABI notes for better compatibility.

This commit updates the i386 backend to use the psabi_new_behavior_p mechanism when classifying complex float members at unaligned offsets. Previously, such members were given a single SSE class, potentially losing the imaginary part. The change ensures that complex float members at offsets not divisible by 64 bits receive a second class for their imaginary part, aligning with modern ABI practices and correctly informing users about ABI changes only when necessary.

In Details

This patch modifies classify_argument in i386.cc to use the PSABI_COMPLEX_FLOAT_MEMBER flag when a complex float member is found at an offset that is not a multiple of 64 bits. Previously, such a member would be classified solely with X86_64_SSE_CLASS, potentially losing the imaginary part or misrepresenting the ABI. By using psabi_new_behavior_p, the inform_psabi_change function will now correctly indicate that the classification differs only when the ABI behavior for that specific member type and offset has changed, preserving compatibility with older classifications where the i…

For Context
psABI
The Procedure Call Standard for the Application Binary Interface, defining how functions are called and how data is passed between them on a particular architecture.
complex float
A data type representing a complex number where both the real and imaginary parts are floating-point numbers.
ABI
Application Binary Interface. Defines the low-level interface between software components, particularly between an operating system and compiled programs.
SSE
Streaming SIMD Extensions, a set of instructions for multimedia and data processing tasks on x86 processors.
classify_argument
A function within GCC that determines how function arguments should be classified according to the target's ABI for register or stack allocation.
unaligned offset
A memory address or data structure offset that is not a multiple of a required alignment boundary (e.g., 64 bits).
Filed Under: i386ABIcomplex numbersfloating point