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 61a87530108ec9181e1b18a9b727ec3cc3ba7532)
2022-05-16 22:06:54 +05:30
..
2021-10-01 18:19:09 +02:00
2021-07-22 18:37:59 +05:30
2021-07-09 20:09:14 +02:00
2021-07-21 11:58:09 +02:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00