------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-29 
08:42 -------
Subject: Bug 23484

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-rhl-branch
Changes by:     [EMAIL PROTECTED]       2005-08-29 08:42:09

Modified files:
        gcc            : ChangeLog builtins.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/gcc.c-torture/execute/builtins: pr23484-chk.c 
                                                      pr23484-chk-lib.c 

Log message:
        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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=2.7592.2.10.2.56&r2=2.7592.2.10.2.57
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=1.426.4.6&r2=1.426.4.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=1.5084.2.9.2.52&r2=1.5084.2.9.2.53
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/pr23484-chk.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/pr23484-chk-lib.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=NONE&r2=1.1.2.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23484

Reply via email to