public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/58956] [4.7 Regression] wrong code at -O1 and above (affecting gcc 4.6 to trunk) Date: Mon, 16 Dec 2013 08:09:00 -0000 [thread overview] Message-ID: <bug-58956-4-if6NgSRiVe@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-58956-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58956 --- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Dec 16 08:09:05 2013 New Revision: 206009 URL: http://gcc.gnu.org/viewcvs?rev=206009&root=gcc&view=rev Log: PR middle-end/58956 PR middle-end/59470 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef. (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it for callback params. * gimple-walk.c (walk_stmt_load_store_ops): Likewise. (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback calls to supply the gimple operand containing the base tree as an extra argument. * tree-ssa-ter.c: Include gimple-walk.h. (find_ssaname, find_ssaname_in_store): New helper functions. (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set same_root_var if USE is used somewhere in the stores of the stmt. * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt argument and ATTRIBUTE_UNUSED, add another unnamed tree argument. * ipa-pure-const.c (check_load, check_store, check_ipa_load, check_ipa_store): Likewise. * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise. * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise. (verify_non_ssa_vars, visit_bb): Adjust their callers. * cfgexpand.c (add_scope_conflicts_1): Use walk_stmt_load_store_addr_fn type for visit variable. (visit_op, visit_conflict): Remove name of the stmt argument and ATTRIBUTE_UNUSED, add another unnamed tree argument. * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data argument and ATTRIBUTE_UNUSED. * cgraphbuild.c (mark_address, mark_load, mark_store): Add another unnamed tree argument. * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove ATTRIBUTE_UNUSED from stmt parameter. * gcc.target/i386/pr59470.c: New test. Added: trunk/gcc/testsuite/gcc.target/i386/pr59470.c Modified: trunk/gcc/ChangeLog trunk/gcc/cfgexpand.c trunk/gcc/cgraphbuild.c trunk/gcc/gimple-ssa-isolate-paths.c trunk/gcc/gimple-walk.c trunk/gcc/gimple-walk.h trunk/gcc/gimple.c trunk/gcc/ipa-prop.c trunk/gcc/ipa-pure-const.c trunk/gcc/ipa-split.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-sra.c trunk/gcc/tree-ssa-ter.c
next prev parent reply other threads:[~2013-12-16 8:09 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-11-01 5:14 [Bug tree-optimization/58956] New: " su at cs dot ucdavis.edu 2013-11-01 8:34 ` [Bug tree-optimization/58956] [4.7/4.8/4.9 Regression] " mpolacek at gcc dot gnu.org 2013-11-04 14:37 ` rguenth at gcc dot gnu.org 2013-11-09 21:56 ` mikpelinux at gmail dot com 2013-11-19 10:44 ` [Bug middle-end/58956] " rguenth at gcc dot gnu.org 2013-11-19 11:09 ` rguenth at gcc dot gnu.org 2013-11-19 13:28 ` rguenth at gcc dot gnu.org 2013-11-19 13:29 ` [Bug middle-end/58956] [4.7/4.8 " rguenth at gcc dot gnu.org 2013-12-05 13:10 ` rguenth at gcc dot gnu.org 2013-12-16 8:09 ` jakub at gcc dot gnu.org [this message] 2014-01-07 16:49 ` [Bug middle-end/58956] [4.7 " jakub at gcc dot gnu.org 2014-01-08 10:14 ` hp at gcc dot gnu.org 2014-01-08 10:22 ` rguenth at gcc dot gnu.org 2014-06-12 13:31 ` rguenth at gcc dot gnu.org
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=bug-58956-4-if6NgSRiVe@http.gcc.gnu.org/bugzilla/ \ --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).