* [Bug tree-optimization/59745] [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492
2014-01-10 0:59 [Bug tree-optimization/59745] New: [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492 hjl.tools at gmail dot com
@ 2014-01-10 1:10 ` hjl.tools at gmail dot com
2014-01-10 4:49 ` hjl.tools at gmail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-10 1:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59745
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-01-10
Target Milestone|--- |4.9.0
Ever confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
This is 416.gamess in SPEC CPU 2006.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/59745] [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492
2014-01-10 0:59 [Bug tree-optimization/59745] New: [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492 hjl.tools at gmail dot com
2014-01-10 1:10 ` [Bug tree-optimization/59745] " hjl.tools at gmail dot com
@ 2014-01-10 4:49 ` hjl.tools at gmail dot com
2014-01-10 9:14 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-10 4:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59745
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
#0 internal_error (
gmsgid=0x14cea90 "tree check: expected tree that contains %qs structure,
have %qs in %s, at %s:%d") at /export/gnu/import/git/gcc/gcc/diagnostic.c:1127
#1 0x0000000000e69ab1 in tree_contains_struct_check_failed (
node=0x7ffff18d08e8, en=TS_TYPED,
file=0x1444888 "/export/gnu/import/git/gcc/gcc/fold-const.c", line=2492,
function=0x1449ec0 <operand_equal_p(tree_node const*, tree_node const*,
unsigned int)::__FUNCTION__> "operand_equal_p")
at /export/gnu/import/git/gcc/gcc/tree.c:9364
#2 0x00000000006af1d0 in contains_struct_check (__t=0x7ffff18d08e8,
__s=TS_TYPED, __f=0x1444888 "/export/gnu/import/git/gcc/gcc/fold-const.c",
__l=2492,
__g=0x1449ec0 <operand_equal_p(tree_node const*, tree_node const*, unsigned
int)::__FUNCTION__> "operand_equal_p")
at /export/gnu/import/git/gcc/gcc/tree.h:3033
#3 0x00000000008ac99c in operand_equal_p (arg0=0x7ffff1a41528,
arg1=0x7ffff18d08e8, flags=0)
at /export/gnu/import/git/gcc/gcc/fold-const.c:2492
Python Exception <type 'exceptions.UnicodeDecodeError'> 'utf8' codec can't
decode byte 0x8b in position 1: invalid start byte:
#4 0x00000000012f74f9 in aff_combination_add_elt (comb=0x7fffffffd360, elt=,
scale=...) at /export/gnu/import/git/gcc/gcc/tree-affine.c:145
#5 0x00000000012f7952 in aff_combination_add (comb1=0x7fffffffd360,
comb2=0x7fffffffd450) at /export/gnu/import/git/gcc/gcc/tree-affine.c:213
#6 0x00000000012f9a7c in aff_combination_expand (comb=0x7fffffffd810,
---Type <return> to continue, or q <return> to quit---
cache=0x1c68a50 <name_expansions>)
at /export/gnu/import/git/gcc/gcc/tree-affine.c:713
#7 0x00000000012f9b11 in tree_to_aff_combination_expand (
expr=<nop_expr 0x7ffff17362e0>,
type=<integer_type 0x7ffff18b31f8 ssizetype>, comb=0x7fffffffd810,
cache=0x1c68a50 <name_expansions>)
at /export/gnu/import/git/gcc/gcc/tree-affine.c:734
#8 0x0000000000c73edf in aff_combination_dr_offset (dr=0x1fab080,
offset=0x7fffffffd810) at /export/gnu/import/git/gcc/gcc/tree-predcom.c:640
#9 0x0000000000c740e8 in determine_offset (a=0x1fab080, b=0x2007d90,
off=0x7fffffffdb30) at /export/gnu/import/git/gcc/gcc/tree-predcom.c:681
#10 0x0000000000c7450e in split_data_refs_to_components (loop=0x7ffff14f16e0,
datarefs=..., depends=...)
at /export/gnu/import/git/gcc/gcc/tree-predcom.c:790
#11 0x0000000000c784f5 in tree_predictive_commoning_loop (loop=0x7ffff14f16e0)
at /export/gnu/import/git/gcc/gcc/tree-predcom.c:2444
#12 0x0000000000c788ab in tree_predictive_commoning ()
at /export/gnu/import/git/gcc/gcc/tree-predcom.c:2551
#13 0x0000000000c7891d in run_tree_predictive_commoning ()
at /export/gnu/import/git/gcc/gcc/tree-predcom.c:2572
#14 0x0000000000c78987 in (anonymous namespace)::pass_predcom::execute (
this=0x1cc1190) at /export/gnu/import/git/gcc/gcc/tree-predcom.c:2607
#15 0x0000000000ad1072 in execute_one_pass (
---Type <return> to continue, or q <return> to quit---
pass=<opt_pass* 0x1cc1190 "pcom"(121)>)
at /export/gnu/import/git/gcc/gcc/passes.c:2226
#16 0x0000000000ad128b in execute_pass_list (
pass=<opt_pass* 0x1cc1190 "pcom"(121)>)
at /export/gnu/import/git/gcc/gcc/passes.c:2279
#17 0x0000000000ad12bc in execute_pass_list (pass=
<opt_pass* 0x1cc09b0 "loop"(101)>)
at /export/gnu/import/git/gcc/gcc/passes.c:2280
#18 0x0000000000ad12bc in execute_pass_list (
pass=<opt_pass* 0x1cbf8d0 "*all_optimizations"(-1)>)
at /export/gnu/import/git/gcc/gcc/passes.c:2280
#19 0x00000000007acfec in expand_function (
node=<cgraph_node* 0x7ffff1730000 "trmd">)
at /export/gnu/import/git/gcc/gcc/cgraphunit.c:1764
#20 0x00000000007ad5e0 in expand_all_functions ()
at /export/gnu/import/git/gcc/gcc/cgraphunit.c:1898
#21 0x00000000007adfac in compile ()
at /export/gnu/import/git/gcc/gcc/cgraphunit.c:2242
#22 0x00000000007ae125 in finalize_compilation_unit ()
at /export/gnu/import/git/gcc/gcc/cgraphunit.c:2319
#23 0x0000000000a1dbcd in write_global_declarations ()
at /export/gnu/import/git/gcc/gcc/langhooks.c:323
#24 0x0000000000667550 in gfc_write_global_declarations ()
---Type <return> to continue, or q <return> to quit---
at /export/gnu/import/git/gcc/gcc/fortran/f95-lang.c:262
#25 0x0000000000bbc1d8 in compile_file ()
at /export/gnu/import/git/gcc/gcc/toplev.c:562
#26 0x0000000000bbe324 in do_compile ()
at /export/gnu/import/git/gcc/gcc/toplev.c:1914
#27 0x0000000000bbe48f in toplev_main (argc=19, argv=0x7fffffffe088)
at /export/gnu/import/git/gcc/gcc/toplev.c:1990
#28 0x000000000133f87c in main (argc=19, argv=0x7fffffffe088)
at /export/gnu/import/git/gcc/gcc/main.c:36
(gdb)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/59745] [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492
2014-01-10 0:59 [Bug tree-optimization/59745] New: [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492 hjl.tools at gmail dot com
2014-01-10 1:10 ` [Bug tree-optimization/59745] " hjl.tools at gmail dot com
2014-01-10 4:49 ` hjl.tools at gmail dot com
@ 2014-01-10 9:14 ` jakub at gcc dot gnu.org
2014-01-10 11:06 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-10 9:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59745
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 31792
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31792&action=edit
gcc49-pr59745.patch
Totally untested fix. As this is only reproduceable in bootstrapped build, -O0
built stage1 doesn't fail, this is just a guess what the problem is, will try
to verify later on with bootstrap (but, because of that I think adding a
reduced testcase is not really useful either). If that is the case, it would
be a latent bug before, as determine_offset has been called before for
read/read and could put items into the affine cache.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/59745] [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492
2014-01-10 0:59 [Bug tree-optimization/59745] New: [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492 hjl.tools at gmail dot com
` (2 preceding siblings ...)
2014-01-10 9:14 ` jakub at gcc dot gnu.org
@ 2014-01-10 11:06 ` rguenth at gcc dot gnu.org
2014-01-10 20:38 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-01-10 11:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59745
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/59745] [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492
2014-01-10 0:59 [Bug tree-optimization/59745] New: [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492 hjl.tools at gmail dot com
` (3 preceding siblings ...)
2014-01-10 11:06 ` rguenth at gcc dot gnu.org
@ 2014-01-10 20:38 ` jakub at gcc dot gnu.org
2014-01-10 20:55 ` jakub at gcc dot gnu.org
2014-01-13 8:42 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-10 20:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59745
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jan 10 20:37:52 2014
New Revision: 206540
URL: http://gcc.gnu.org/viewcvs?rev=206540&root=gcc&view=rev
Log:
PR tree-optimization/59745
* tree-predcom.c (tree_predictive_commoning_loop): Call
free_affine_expand_cache if giving up because components is NULL.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-predcom.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/59745] [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492
2014-01-10 0:59 [Bug tree-optimization/59745] New: [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492 hjl.tools at gmail dot com
` (4 preceding siblings ...)
2014-01-10 20:38 ` jakub at gcc dot gnu.org
@ 2014-01-10 20:55 ` jakub at gcc dot gnu.org
2014-01-13 8:42 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-10 20:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59745
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/59745] [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492
2014-01-10 0:59 [Bug tree-optimization/59745] New: [4.9 Regression] internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492 hjl.tools at gmail dot com
` (5 preceding siblings ...)
2014-01-10 20:55 ` jakub at gcc dot gnu.org
@ 2014-01-13 8:42 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-13 8:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59745
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jan 13 08:41:39 2014
New Revision: 206573
URL: http://gcc.gnu.org/viewcvs?rev=206573&root=gcc&view=rev
Log:
PR tree-optimization/59745
* tree-predcom.c (tree_predictive_commoning_loop): Call
free_affine_expand_cache if giving up because components is NULL.
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/tree-predcom.c
^ permalink raw reply [flat|nested] 8+ messages in thread