[Bug string/30621] New: compilers pretending to be gcc may break due to __builtin___stpncpy_chk

siddhesh at sourceware dot org sourceware-bugzilla@sourceware.org
Fri Jul 7 18:21:52 GMT 2023


https://sourceware.org/bugzilla/show_bug.cgi?id=30621

            Bug ID: 30621
           Summary: compilers pretending to be gcc may break due to
                    __builtin___stpncpy_chk
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: string
          Assignee: unassigned at sourceware dot org
          Reporter: siddhesh at sourceware dot org
  Target Milestone: ---

The nvidia cuda compiler appears to[1] pretend to be gcc (or maybe clang) to
try and enable some features, but ends up enabling __builtin___stpncpy_chk even
when it doesn't implement that.  Fix up the macro checks in string_fortified.h
to handle this.

[1]
https://stackoverflow.com/questions/76531467/nvcc-cuda8-gcc-5-3-no-longer-compiles-with-o1-on-ubuntu-22-04

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list