Landing: 12392ed4c25f

Project / Subsystem

gcc / middle-end

Date

2026-09-01

Author

Shreesh Adiga

Commit

12392ed4c25f9daf0617d106e7d85113128e6cc9

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
middle-end
patch_id
—
commit_hash
12392ed4c25f9daf0617d106e7d85113128e6cc9
source_type
github
headline
Make CRC helper functions public and extend functionality
tldr
GCC's CRC calculation functions are now more flexible and accessible for future optimizations.
author
Shreesh Adiga
outcome
committed
performance_win
false
breaking_change
false
series_id
gcc:middle-end: extend crc functions and make them publicly available
series_parts
[]
tags
  • • refactor
  • • compiler
  • • crc
discussion_id_link
—
bugzilla_pr
—
date
2026-09-01T00:00:00.000Z

This change refactors GCC’s CRC calculation functions, calculate_crc and calculate_reversed_crc, moving them to hwint.cc and making them public. The functions are extended to handle arbitrary data sizes and initial CRC values, moving beyond their previous limitations of 8-bit data and a fixed initial CRC of 0. This lays the groundwork for implementing compile-time constant folding of CRC built-ins.