[Bug tree-optimization/51118] [4.7 Regression] ICE: tree check: expected tree that contains ‘typed’ structure, have ‘block’ in fold_checksum_tree, at fold-const.c:14160
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51118 --- Comment #10 from uros at gcc dot gnu.org 2012-02-27 11:19:12 UTC --- Author: uros Date: Mon Feb 27 11:19:03 2012 New Revision: 184595 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184595 Log: Revert: 2012-02-02 Uros Bizjak ubiz...@gmail.com Backport from mainline: 2011-11-18 Uros Bizjak ubiz...@gmail.com PR tree-optimization/51118 * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure before using TREE_TYPE accessor on expr. Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/fold-const.c
[Bug tree-optimization/51118] [4.7 Regression] ICE: tree check: expected tree that contains ‘typed’ structure, have ‘block’ in fold_checksum_tree, at fold-const.c:14160
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51118 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added CC||d.g.gorbachev at gmail dot ||com --- Comment #8 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-03 02:44:10 UTC --- *** Bug 50706 has been marked as a duplicate of this bug. ***
[Bug tree-optimization/51118] [4.7 Regression] ICE: tree check: expected tree that contains ‘typed’ structure, have ‘block’ in fold_checksum_tree, at fold-const.c:14160
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51118 --- Comment #9 from uros at gcc dot gnu.org 2012-02-03 07:29:41 UTC --- Author: uros Date: Fri Feb 3 07:29:31 2012 New Revision: 183864 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=183864 Log: Backport from mainline: 2011-11-18 Uros Bizjak ubiz...@gmail.com PR tree-optimization/51118 * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure before using TREE_TYPE accessor on expr. Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/fold-const.c
[Bug tree-optimization/51118] [4.7 Regression] ICE: tree check: expected tree that contains ‘typed’ structure, have ‘block’ in fold_checksum_tree, at fold-const.c:14160
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51118 --- Comment #6 from uros at gcc dot gnu.org 2011-11-18 09:54:07 UTC --- Author: uros Date: Fri Nov 18 09:54:02 2011 New Revision: 181468 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=181468 Log: PR tree-optimization/51118 * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure before using TREE_TYPE accessor on expr. Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c
[Bug tree-optimization/51118] [4.7 Regression] ICE: tree check: expected tree that contains ‘typed’ structure, have ‘block’ in fold_checksum_tree, at fold-const.c:14160
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51118 Uros Bizjak ubizjak at gmail dot com changed: What|Removed |Added Target|x86 | Status|ASSIGNED|RESOLVED URL||http://gcc.gnu.org/ml/gcc-p ||atches/2011-11/msg01844.htm ||l Resolution||FIXED --- Comment #7 from Uros Bizjak ubizjak at gmail dot com 2011-11-18 09:57:19 UTC --- Fixed for 4.7.
[Bug tree-optimization/51118] [4.7 Regression] ICE: tree check: expected tree that contains ‘typed’ structure, have ‘block’ in fold_checksum_tree, at fold-const.c:14160
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51118 Uros Bizjak ubizjak at gmail dot com changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |ubizjak at gmail dot com |gnu.org | --- Comment #4 from Uros Bizjak ubizjak at gmail dot com 2011-11-17 17:21:29 UTC --- The patch: --cut here-- Index: fold-const.c === --- fold-const.c(revision 181443) +++ fold-const.c(working copy) @@ -14157,7 +14157,8 @@ } } md5_process_bytes (expr, tree_size (expr), ctx); - fold_checksum_tree (TREE_TYPE (expr), ctx, ht); + if (TREE_CODE_CLASS (code) == tcc_type) +fold_checksum_tree (TREE_TYPE (expr), ctx, ht); if (TREE_CODE_CLASS (code) != tcc_type TREE_CODE_CLASS (code) != tcc_declaration code != TREE_LIST --cut here--
[Bug tree-optimization/51118] [4.7 Regression] ICE: tree check: expected tree that contains ‘typed’ structure, have ‘block’ in fold_checksum_tree, at fold-const.c:14160
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51118 --- Comment #5 from Uros Bizjak ubizjak at gmail dot com 2011-11-17 17:50:44 UTC --- Better patch: --cut here-- Index: fold-const.c === --- fold-const.c(revision 181443) +++ fold-const.c(working copy) @@ -14157,7 +14157,8 @@ } } md5_process_bytes (expr, tree_size (expr), ctx); - fold_checksum_tree (TREE_TYPE (expr), ctx, ht); + if (CODE_CONTAINS_STRUCT (code, TS_TYPED)) +fold_checksum_tree (TREE_TYPE (expr), ctx, ht); if (TREE_CODE_CLASS (code) != tcc_type TREE_CODE_CLASS (code) != tcc_declaration code != TREE_LIST --cut here--
[Bug tree-optimization/51118] [4.7 Regression] ICE: tree check: expected tree that contains ‘typed’ structure, have ‘block’ in fold_checksum_tree, at fold-const.c:14160
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51118 Uros Bizjak ubizjak at gmail dot com changed: What|Removed |Added Component|bootstrap |tree-optimization Target Milestone|--- |4.7.0 Summary|ICE when bootstrapping on |[4.7 Regression] ICE: tree |Ubuntu 11.10/amd64 with |check: expected tree that |stage1 checking enabled |contains ‘typed’ structure, ||have ‘block’ in ||fold_checksum_tree, at ||fold-const.c:14160 --- Comment #3 from Uros Bizjak ubizjak at gmail dot com 2011-11-14 23:23:55 UTC --- 4.7 regression.