* [Bug tree-optimization/46985] [4.4/4.5/4.6 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
@ 2010-12-17 6:09 ` hjl.tools at gmail dot com
2010-12-17 12:05 ` jakub at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: hjl.tools at gmail dot com @ 2010-12-17 6:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.0
Summary|ICE: SIGSEGV in |[4.4/4.5/4.6 Regression]
|is_gimple_min_invariant |ICE: SIGSEGV in
|(gimple.c:2742) with |is_gimple_min_invariant
|-fno-tree-ccp |(gimple.c:2742) with
|-fno-tree-dominator-opts |-fno-tree-ccp
|-fno-tree-fre |-fno-tree-dominator-opts
| |-fno-tree-fre
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.4/4.5/4.6 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
2010-12-17 6:09 ` [Bug tree-optimization/46985] [4.4/4.5/4.6 Regression] " hjl.tools at gmail dot com
@ 2010-12-17 12:05 ` jakub at gcc dot gnu.org
2010-12-17 12:53 ` jakub at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-17 12:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.12.17 12:05:09
CC| |jakub at gcc dot gnu.org,
| |spop at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-17 12:05:09 UTC ---
instantiate_scev_r is called on:
{&tar[ptr$dim$0$lbound_81 + -1].i, +, 4}_3
and the problem is with that COMPONENT_REF inside of it. COMPONENT_REF has 3
operands, but the last one is optional (there are lots of other trees like
that),
but instantiate_scev_r/instantiate_scev_[123] assume all operands must be
non-NULL.
So, one possible fix would be to:
if (automatically_generated_chrec_p (chrec)
+ || chrec == NULL
|| is_gimple_min_invariant (chrec))
return chrec;
at the beginning of instantiate_scev_r. Or maybe it is just wrong to call
instantiate_scev_r with such arguments and the bug is earlier.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.4/4.5/4.6 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
2010-12-17 6:09 ` [Bug tree-optimization/46985] [4.4/4.5/4.6 Regression] " hjl.tools at gmail dot com
2010-12-17 12:05 ` jakub at gcc dot gnu.org
@ 2010-12-17 12:53 ` jakub at gcc dot gnu.org
2010-12-17 13:02 ` jakub at gcc dot gnu.org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-17 12:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-17 12:53:28 UTC ---
This is called when constant_after_peeling is called on:
D.1682_40 = &tar[0].i + D.1683_39;
(&tar[0].i is is_gimple_min_invariant). Folding folds
&tar[0].i p+ (<unnamed-unsigned:64>) ((ptr$dim$0$lbound_81 + -1) * 4)
into the COMPONENT_REF's operand.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.4/4.5/4.6 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-12-17 12:53 ` jakub at gcc dot gnu.org
@ 2010-12-17 13:02 ` jakub at gcc dot gnu.org
2010-12-18 18:15 ` jakub at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-17 13:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-17 13:01:51 UTC ---
Created attachment 22796
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22796
gcc46-pr46985.patch
Untested fix.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.4/4.5/4.6 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
` (3 preceding siblings ...)
2010-12-17 13:02 ` jakub at gcc dot gnu.org
@ 2010-12-18 18:15 ` jakub at gcc dot gnu.org
2010-12-18 18:29 ` [Bug tree-optimization/46985] [4.4/4.5 " jakub at gcc dot gnu.org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-18 18:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-18 18:15:13 UTC ---
Author: jakub
Date: Sat Dec 18 18:15:10 2010
New Revision: 168027
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168027
Log:
PR tree-optimization/46985
* tree-scalar-evolution.c (instantiate_scev_r): If chrec is NULL,
return it immediately.
* gfortran.dg/pr46985.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/pr46985.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-scalar-evolution.c
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.4/4.5 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
` (4 preceding siblings ...)
2010-12-18 18:15 ` jakub at gcc dot gnu.org
@ 2010-12-18 18:29 ` jakub at gcc dot gnu.org
2011-03-25 20:02 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-18 18:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.6.0
Summary|[4.4/4.5/4.6 Regression] |[4.4/4.5 Regression] ICE:
|ICE: SIGSEGV in |SIGSEGV in
|is_gimple_min_invariant |is_gimple_min_invariant
|(gimple.c:2742) with |(gimple.c:2742) with
|-fno-tree-ccp |-fno-tree-ccp
|-fno-tree-dominator-opts |-fno-tree-dominator-opts
|-fno-tree-fre |-fno-tree-fre
Known to fail|4.6.0 |
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-18 18:29:26 UTC ---
Fixed on the trunk so far.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.4/4.5 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
` (5 preceding siblings ...)
2010-12-18 18:29 ` [Bug tree-optimization/46985] [4.4/4.5 " jakub at gcc dot gnu.org
@ 2011-03-25 20:02 ` jakub at gcc dot gnu.org
2011-06-27 15:55 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-25 20:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.6.0 |4.6.1
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-25 19:52:51 UTC ---
GCC 4.6.0 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.4/4.5 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
` (6 preceding siblings ...)
2011-03-25 20:02 ` jakub at gcc dot gnu.org
@ 2011-06-27 15:55 ` jakub at gcc dot gnu.org
2011-10-10 12:41 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-06-27 15:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.6.1 |4.6.2
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-27 12:33:04 UTC ---
GCC 4.6.1 is being released.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.4/4.5 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
` (7 preceding siblings ...)
2011-06-27 15:55 ` jakub at gcc dot gnu.org
@ 2011-10-10 12:41 ` rguenth at gcc dot gnu.org
2012-03-13 13:37 ` [Bug tree-optimization/46985] [4.5 " jakub at gcc dot gnu.org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-10 12:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.6.2 |4.4.7
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.5 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
` (8 preceding siblings ...)
2011-10-10 12:41 ` rguenth at gcc dot gnu.org
@ 2012-03-13 13:37 ` jakub at gcc dot gnu.org
2012-06-20 12:51 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-13 13:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.4.7 |4.5.4
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-13 12:45:59 UTC ---
4.4 branch is being closed, moving to 4.5.4 target.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.5 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
` (9 preceding siblings ...)
2012-03-13 13:37 ` [Bug tree-optimization/46985] [4.5 " jakub at gcc dot gnu.org
@ 2012-06-20 12:51 ` rguenth at gcc dot gnu.org
2012-06-20 13:56 ` rguenth at gcc dot gnu.org
2012-06-20 14:43 ` rguenth at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-20 12:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.5 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
` (10 preceding siblings ...)
2012-06-20 12:51 ` rguenth at gcc dot gnu.org
@ 2012-06-20 13:56 ` rguenth at gcc dot gnu.org
2012-06-20 14:43 ` rguenth at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-20 13:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-20 13:56:01 UTC ---
Author: rguenth
Date: Wed Jun 20 13:55:44 2012
New Revision: 188834
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188834
Log:
2012-06-20 Richard Guenther <rguenther@suse.de>
Backport from mainline
2010-12-18 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/46985
* tree-scalar-evolution.c (instantiate_scev_r): If chrec is NULL,
return it immediately.
* gfortran.dg/pr46985.f90: New test.
2011-02-18 Jakub Jelinek <jakub@redhat.com>
PR debug/47780
* cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
avoid invalid rtx sharing.
* gcc.target/i386/pr47780.c: New test.
2011-02-27 Jakub Jelinek <jakub@redhat.com>
PR middle-end/47903
* real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
r isn't op0 nor op1.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/pr47780.c
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/pr46985.f90
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/cfgexpand.c
branches/gcc-4_5-branch/gcc/real.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/tree-scalar-evolution.c
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/46985] [4.5 Regression] ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre
2010-12-16 23:08 [Bug tree-optimization/46985] New: ICE: SIGSEGV in is_gimple_min_invariant (gimple.c:2742) with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre zsojka at seznam dot cz
` (11 preceding siblings ...)
2012-06-20 13:56 ` rguenth at gcc dot gnu.org
@ 2012-06-20 14:43 ` rguenth at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-20 14:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46985
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-20 14:42:53 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 14+ messages in thread