diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-08-29 10:40:48 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2005-08-29 10:40:48 +0200 |
commit | f28d3046d26b66851e570b4c851a0d856f545926 (patch) | |
tree | 3b05ddc14a41f4ae6ef2054dd356f6df933d296e /gcc/ipa-inline.c | |
parent | 37261a5c97f0844da609767d0e5f4dfb748dc6e3 (diff) | |
download | gcc-f28d3046d26b66851e570b4c851a0d856f545926.zip gcc-f28d3046d26b66851e570b4c851a0d856f545926.tar.gz gcc-f28d3046d26b66851e570b4c851a0d856f545926.tar.bz2 |
re PR middle-end/23484 (__builtin___memcpy_chk miscompilation)
PR middle-end/23484
* builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
not constant, but maxlen is, don't set len to maxlen, rather
set maxlen to len if len is a constant.
* gcc.c-torture/execute/builtins/pr23484-chk.c: New test.
* gcc.c-torture/execute/builtins/pr23484-chk-lib.c: New file.
From-SVN: r103594
Diffstat (limited to 'gcc/ipa-inline.c')
0 files changed, 0 insertions, 0 deletions