diff options
author | 2020-11-12 12:09:56 +0530 | |
---|---|---|
committer | 2020-11-12 14:36:43 +0530 | |
commit | 7163ace3318d666d40771f5c8e7c4a148827070f (patch) | |
tree | e4069e211ca40c78133ae26d3c1eb57919ef345b /sysdeps/unix/sysv/linux/generic/inotify_init.c | |
parent | tests: Remove NULL check for an array (diff) | |
download | glibc-7163ace3318d666d40771f5c8e7c4a148827070f.tar.xz glibc-7163ace3318d666d40771f5c8e7c4a148827070f.zip |
Use __builtin___stpncpy_chk when available
The builtin has been available in gcc since 4.7.0 and in clang since
2.6. This fixes stpncpy fortification with clang since it does a
better job of plugging in __stpncpy_chk in the right place than the
header hackery.
This has been tested by building and running all tests with gcc 10.2.1
and also with clang tip as of a few days ago (just the tests in debug/
since running all tests don't work with clang at the moment) to make
sure that both compilers pass the stpncpy tests.
Diffstat (limited to 'sysdeps/unix/sysv/linux/generic/inotify_init.c')
0 files changed, 0 insertions, 0 deletions