glibc/misc/sys
Siddhesh Poyarekar b72bbba236 fortify: Ensure that __glibc_fortify condition is a constant [BZ #29141]
The fix c8ee1c85 introduced a -1 check for object size without also
checking that object size is a constant.  Because of this, the tree
optimizer passes in gcc fail to fold away one of the branches in
__glibc_fortify and trips on a spurious Wstringop-overflow.  The warning
itself is incorrect and the branch does go away eventually in DCE in the
rtl passes in gcc, but the constant check is a helpful hint to simplify
code early, so add it in.

Resolves: BZ #29141
Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 61a8753010)
2022-05-16 22:06:54 +05:30
..
auxv.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
cdefs.h fortify: Ensure that __glibc_fortify condition is a constant [BZ #29141] 2022-05-16 22:06:54 +05:30
dir.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
file.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ioctl.h Linux: Fix fcntl, ioctl, prctl redirects for _TIME_BITS=64 (bug 28182) 2021-08-06 16:42:40 +02:00
mman.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
param.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
queue.h [BZ #5779] 2008-03-05 05:50:39 +00:00
select.h y2038: Add support for 64-bit time on legacy ABIs 2021-06-15 10:42:11 -03:00
single_threaded.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
syslog.h Rename __LONG_DOUBLE_USES_FLOAT128 to __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 2020-04-30 08:52:08 -05:00
sysmacros.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
uio.h Annotate additional APIs with GCC attribute access. 2021-05-06 11:01:05 -06:00
xattr.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00