https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120720
Bug ID: 120720
Summary: __builtin_rev_crc32_data8 (and family) should be
constexpr functions
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: sh1.gccbug at tikouka dot nz
Target Milestone: ---
In the world of heavy pre-compilation, one might reasonably want a checksum of
pre-compiled objects, but the current builtin is not constexpr, so that's a
headache.
See for example:
https://godbolt.org/z/rn4jozq61
At the same time, the architecture specific intrinsics, like
__builtin_ia32_crc32qi() (and all the others for other architectures) might
also benefit from the same treatment.
(the example link above is the same link as for my other bug report regarding
target-specific optimisation)