Landing: 389b68a1b98f

Project / Subsystem

gcc / gcc/include

Date

2026-09-06

Author

Matt Turner

Commit

389b68a1b98f30e44b86ef298456ef0014471c38

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/include
patch_id
—
commit_hash
389b68a1b98f30e44b86ef298456ef0014471c38
source_type
github
headline
Parenthesize sdiv_qrnnd macro parameters in longlong.h
tldr
Fixes a latent bug in longlong.h by parenthesizing macro parameters to prevent misparsing.
author
Matt Turner
outcome
committed
performance_win
false
breaking_change
false
series_id
gcc:include: parenthesize sdiv_qrnnd macro parameters in longlong.h
series_parts
[]
tags
  • • gcc
  • • include
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-09-06T00:00:00.000Z

This commit corrects a potential parsing issue in the sdiv_qrnnd macros within longlong.h. Previously, arguments containing commas or assignments could be misparsed due to a lack of parentheses. This fix ensures correct parsing for i370/s390 and VAX architectures, addressing a latent bug that could have led to incorrect behavior. The change mirrors a similar fix in libgcrypt.