Skip to contentSkip to conversation

gcc: fix incorrect preprocessor line numbers in large files

PATCH New [email protected] 1 participant 1 message May 21, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: fix incorrect preprocessor line numbers in large files

From: Yash Shinde <[email protected]>

Resolve static assertion failures caused by incorrect line numbers after #include directives, introduced by the backport of PR108900 to GCC. Update line map handling to correctly compute locations in large files, including fixes for both LC_ENTER and LC_LEAVE to ensure accurate line number resolution in rare edge cases.

https://gcc.gnu.org/cgit/gcc/commit/?id=edf745dc519ddbfef127e2789bf11bfbacd300b7

---
 meta/recipes-devtools/gcc/gcc-15.1.inc        |   1 +
 ...-incorrect-preprocessor-line-numbers.patch | 475 ++++++++++++++++++
 2 files changed, 476 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc/0026-fix-incorrect-preprocessor-line-numbers.patch
meta/recipes-devtools/gcc/gcc-15.1.inc +1 -0
index 864c6091a6..a2e3533d9c 100644
@@ -69,6 +69,7 @@ SRC_URI = "${BASEURI} \
            file://0023-Fix-install-path-of-linux64.h.patch \
            file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \
            file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \
+           file://0026-fix-incorrect-preprocessor-line-numbers.patch \
 "
 
 S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/${SOURCEDIR}"
meta/recipes-devtools/gcc/gcc/0026-fix-incorrect-preprocessor-line-numbers.patch new file +475 -0

475 lines not on this page · raw message

Signature · 1 line
2.49.0