public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug optimization/11373] [tree-ssa] asm generated lhs expressions are discarded Date: Thu, 31 Jul 2003 16:33:00 -0000 [thread overview] Message-ID: <20030731163333.12566.qmail@sources.redhat.com> (raw) In-Reply-To: <20030629143256.11373.marcus@jet.franken.de> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11373 ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-07-31 16:33 ------- Subject: Bug 11373 CVSROOT: /cvs/gcc Module name: gcc Branch: tree-ssa-20020619-branch Changes by: dnovillo@gcc.gnu.org 2003-07-31 16:33:27 Modified files: gcc : ChangeLog.tree-ssa Makefile.in builtins.c expr.h tree-dfa.c tree-flow.h tree-ssa-ccp.c tree-ssa-dce.c tree-ssa-dom.c tree.h Log message: 2003-07-31 Diego Novillo <dnovillo@redhat.com> * Makefile.in (tree-ssa-ccp.o): Depend on $(EXPR_H). * builtins.c (c_strlen): Remove static declaration. (simplify_builtin_fputs): Remove static declaration. (simplify_builtin_sprintf): New local function. (expand_builtin_sprintf): Remove by surrounding with #if 0. (expand_builtin): Add BUILT_IN_SPRINTF to the list of built-ins handed over to simplify_builtin. (validate_arglist): Do not allow arguments with TREE_SIDE_EFFECTS. (simplify_builtin_fputs): Add new argument KNOWN_LEN. If it's set, use it instead of trying to compute the length of the string. Update all callers. * expr.h (simplify_builtin_fputs): Declare. * tree-flow.h (fold_stmt): Change argument type to tree *. Update all users. * tree-ssa-ccp.c: Include expr.h. (replace_uses_in): If the statement makes a call to some selected built-ins, mark it for folding. (get_strlen): New local function. (ccp_fold_builtin): New local function. (fold_stmt): Call it. (set_rhs): Fix if-else-if chaining. Handle cases where the whole statement needs to be replaced. * tree.h (c_strlen): Declare. 2003-07-31 Diego Novillo <dnovillo@redhat.com> Fix PR optimization/11373 * tree-ssa-dce.c (stmt_useful_p): Get statement operands before checking for volatile operands. * tree-dfa.c (get_expr_operands): If a constant is dereferenced as a pointer, mark the statement as having volatile operands. (may_access_global_mem_p): If a non-NULL constant is used as a pointer, consider it as pointing to global memory. * tree-ssa-dom.c (optimize_stmt): Set addr_expr_propagated_p when propagating pointers that are integer constants. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.544&r2=1.1.2.545 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.903.2.104&r2=1.903.2.105 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.152.2.27&r2=1.152.2.28 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/expr.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.117.2.15&r2=1.117.2.16 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-dfa.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.4.137&r2=1.1.4.138 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-flow.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.4.97&r2=1.1.4.98 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-ccp.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.80&r2=1.1.2.81 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-dce.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.48&r2=1.1.2.49 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-dom.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.14&r2=1.1.2.15 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.342.2.85&r2=1.342.2.86
next prev parent reply other threads:[~2003-07-31 16:33 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-06-29 14:32 [Bug c/11373] New: " marcus at jet dot franken dot de 2003-06-29 14:33 ` [Bug c/11373] " marcus at jet dot franken dot de 2003-06-29 14:49 ` [Bug optimization/11373] " pinskia at physics dot uc dot edu 2003-06-29 14:51 ` pinskia at physics dot uc dot edu 2003-06-29 14:55 ` marcus at jet dot franken dot de 2003-07-05 15:59 ` [Bug optimization/11373] [tree-ssa] " pinskia at physics dot uc dot edu 2003-07-15 1:56 ` pinskia at physics dot uc dot edu 2003-07-15 2:04 ` dnovillo at redhat dot com 2003-07-15 2:04 ` dnovillo at gcc dot gnu dot org 2003-07-15 5:50 ` marcus at jet dot franken dot de 2003-07-15 12:19 ` dnovillo at redhat dot com 2003-07-16 20:17 ` marcus at jet dot franken dot de 2003-07-17 13:54 ` pinskia at physics dot uc dot edu 2003-07-25 23:51 ` dnovillo at redhat dot com 2003-07-31 16:33 ` cvs-commit at gcc dot gnu dot org [this message] 2003-08-03 19:29 ` pinskia at physics dot uc dot edu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030731163333.12566.qmail@sources.redhat.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).