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

SPARC64 longlong.h sub_ddmmss constraints fixed.

SPARC64 longlong.h macro constraints corrected for sub_ddmmss.

A constraint issue in the SPARC64 sub_ddmmss macro within longlong.h has been fixed by removing unnecessary ‘%’ characters from the ah and al constraints. These characters incorrectly allowed the compiler to reorder operands, potentially altering the subtraction. The fix ensures the macro performs the subtraction as intended, with no observed impact on generated code across various optimization levels and microarchitectures.

In Details

In include/longlong.h, the SPARC64 sub_ddmmss macro's constraints for ah and al have been corrected. Commit 0de0d5c6062 introduced the use of '%' in these constraints, signaling to the assembler that the order of minuend and subtrahend could be swapped. This commit removes those '%' specifiers, ensuring that the macro correctly computes bh - ah and bl - al without reordering, as the original intent was likely a direct subtraction.

For Context
sub_ddmmss
A macro likely used for subtracting double-precision decimal minutes, seconds, and subseconds, possibly in a time-related context.
SPARC64
The 64-bit version of the SPARC (Scalable Processor Architecture) instruction set.
constraint
In assembly or compiler contexts, a constraint specifies how an operand should be handled, such as its type, register allocation, or permissible modifications.
Filed Under: sparcinclude