From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13152 invoked by alias); 20 May 2003 13:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 13121 invoked by uid 71); 20 May 2003 13:06:00 -0000 Date: Tue, 20 May 2003 13:06:00 -0000 Message-ID: <20030520130600.13120.qmail@sources.redhat.com> To: sayle@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: jakub@gcc.gnu.org Subject: optimization/10339 Reply-To: jakub@gcc.gnu.org X-SW-Source: 2003-05/txt/msg02172.txt.bz2 List-Id: The following reply was made to PR optimization/10339; it has been noted by GNATS. From: jakub@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: optimization/10339 Date: 20 May 2003 13:02:12 -0000 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_3-rhl-branch Changes by: jakub@gcc.gnu.org 2003-05-20 13:02:12 Modified files: gcc : ChangeLog builtin-types.def builtins.c builtins.def c-decl.c expr.c expr.h Log message: 2003-05-08 Kaveh R. Ghazi * builtins.c (readonly_data_expr): New function. (expand_builtin_memmove): Optimize any rodata source, not just strings. 2003-05-05 Kaveh R. Ghazi * builtins.c (expand_builtin_stpcpy): Only expand when the length of the source string can be evaluated at compile-time. 2003-05-05 Jakub Jelinek * builtins.c (expand_builtin_mempcpy): New function. (expand_builtin_stpcpy): Optimize stpcpy whose return value is ignored into strcpy no matter what arguments it has. (expand_builtin) : Call expand_builtin_mempcpy. 2003-05-02 Kaveh R. Ghazi * builtins.c (expand_builtin_stpcpy): Copy `arglist' before modifying it. 2003-04-28 Jakub Jelinek * c-decl.c (finish_decl): When prototype with asmspec is found for built-in, adjust built_in_decls as well as expr.c decls. * expr.c (init_block_move_fn, init_block_clear_fn): New functions. (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it. * expr.h (init_block_move_fn, init_block_clear_fn): New prototypes. 2003-04-28 Jakub Jelinek * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New. * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New. * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New functions. (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE. 2003-04-23 Roger Sayle PR optimization/10339 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn directly instead of unsafely transforming call into a memcmp. (expand_builtin_strncmp): Likewise. 2003-04-19 Roger Sayle * builtins.c (expand_builtin): Don't expand a pure or const built-in function if the result will be ignored and none of its arguments are volatile. 2003-04-13 Kaveh R. Ghazi * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it. (expand_builtin_stpcpy): New. (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY. * builtins.def: Add mempcpy & stpcpy support. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.16114.2.523.2.13&r2=1.16114.2.523.2.14 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtin-types.def.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.10.2.1&r2=1.10.2.1.4.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.165.2.4&r2=1.165.2.4.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.def.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.39.2.2&r2=1.39.2.2.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.356.2.8&r2=1.356.2.8.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/expr.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.498.2.17&r2=1.498.2.17.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/expr.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.124.2.1&r2=1.124.2.1.4.1