public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "steven at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/38564] [4.4 Regression] Revision 142662 caused ICE in insert_into_preds_of_block Date: Tue, 23 Dec 2008 18:52:00 -0000 [thread overview] Message-ID: <20081223185101.8350.qmail@sourceware.org> (raw) In-Reply-To: <bug-38564-7151@http.gcc.gnu.org/bugzilla/> ------- Comment #9 from steven at gcc dot gnu dot org 2008-12-23 18:51 ------- Hack demonstrates the problem: Index: tree-ssa-pre.c =================================================================== --- tree-ssa-pre.c (revision 142907) +++ tree-ssa-pre.c (working copy) @@ -3274,6 +3274,17 @@ do_regular_insertion (basic_block block, basic_blo } else { + /* For PRE of comparisons, we have to make sure + that the result is of the proper type. */ + if (edoubleprime->kind == CONSTANT + && expr->kind == NARY + && TREE_CODE_CLASS (PRE_EXPR_NARY (expr)->opcode) + == tcc_comparison) + { + PRE_EXPR_CONSTANT (edoubleprime) = + fold_convert (get_expr_type (expr), + PRE_EXPR_CONSTANT (edoubleprime)); + } avail[bprime->index] = edoubleprime; by_some = true; if (first_s == NULL) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38564
next prev parent reply other threads:[~2008-12-23 18:52 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-12-18 1:51 [Bug tree-optimization/38564] New: " daney at gcc dot gnu dot org 2008-12-18 1:54 ` [Bug tree-optimization/38564] [4.4 Regression] " daney at gcc dot gnu dot org 2008-12-18 1:55 ` pinskia at gcc dot gnu dot org 2008-12-18 2:10 ` pinskia at gcc dot gnu dot org 2008-12-18 6:00 ` [Bug tree-optimization/38564] [4.4 Regression] Revision 142662 caused " hjl dot tools at gmail dot com 2008-12-18 8:14 ` jakub at gcc dot gnu dot org 2008-12-23 17:20 ` hjl dot tools at gmail dot com 2008-12-23 17:22 ` hjl dot tools at gmail dot com 2008-12-23 17:57 ` pinskia at gcc dot gnu dot org 2008-12-23 18:21 ` steven at gcc dot gnu dot org 2008-12-23 18:52 ` steven at gcc dot gnu dot org [this message] 2008-12-29 17:56 ` rguenth at gcc dot gnu dot org 2008-12-29 19:56 ` rguenth at gcc dot gnu dot org 2008-12-30 10:30 ` rguenth at gcc dot gnu dot org 2008-12-30 10:32 ` rguenth at gcc dot gnu dot org 2010-04-27 12:17 ` rguenth at gcc dot gnu dot org [not found] <bug-38564-4@http.gcc.gnu.org/bugzilla/> 2011-02-02 22:23 ` pinskia at gcc dot gnu.org 2011-02-03 9:40 ` rguenther at suse dot de 2011-02-03 22:26 ` pinskia 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=20081223185101.8350.qmail@sourceware.org \ --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).