[Bug middle-end/122117] New: Add built-in memalignment

jsm28 at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 1 18:35:43 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122117

            Bug ID: 122117
           Summary: Add built-in memalignment
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jsm28 at gcc dot gnu.org
  Target Milestone: ---

C23 adds a memalignment function to determine the alignment of a pointer. Given
how simple it is (convert pointer to an integer then return (p & -p)), GCC
should support expanding it inline.


More information about the Gcc-bugs mailing list