[Bug tree-optimization/78692] [7 Regression] ICE (segfault)

2017-12-11 Thread tschwinge at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78692

--- Comment #6 from Thomas Schwinge  ---
Author: tschwinge
Date: Mon Dec 11 09:49:25 2017
New Revision: 255538

URL: https://gcc.gnu.org/viewcvs?rev=255538&root=gcc&view=rev
Log:
[PR c++/83301] cgraph.c segfault

Backport trunk r243377:

gcc/
2016-12-07  Jakub Jelinek  

PR c++/78692
* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
var to lhs of new_stmt right before noreturn handling rather than to
lhs of e->call_stmt early.

gcc/testsuite/
2016-12-07  Jakub Jelinek  

PR c++/78692
* g++.dg/torture/pr78692.C: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/torture/pr78692.C
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/cgraph.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug tree-optimization/78692] [7 Regression] ICE (segfault)

2016-12-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78692

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Jakub Jelinek  ---
Fixed.

[Bug tree-optimization/78692] [7 Regression] ICE (segfault)

2016-12-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78692

--- Comment #4 from Jakub Jelinek  ---
Author: jakub
Date: Wed Dec  7 19:10:50 2016
New Revision: 243377

URL: https://gcc.gnu.org/viewcvs?rev=243377&root=gcc&view=rev
Log:
PR c++/78692
* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
var to lhs of new_stmt right before noreturn handling rather than to
lhs of e->call_stmt early.

* g++.dg/torture/pr78692.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/torture/pr78692.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraph.c
trunk/gcc/testsuite/ChangeLog

[Bug tree-optimization/78692] [7 Regression] ICE (segfault)

2016-12-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78692

--- Comment #3 from Jakub Jelinek  ---
*** Bug 78706 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/78692] [7 Regression] ICE (segfault)

2016-12-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78692

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek  ---
Created attachment 40263
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40263&action=edit
gcc7-pr78692.patch

Untested fix.

[Bug tree-optimization/78692] [7 Regression] ICE (segfault)

2016-12-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78692

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-12-06
 CC||jakub at gcc dot gnu.org
   Target Milestone|--- |7.0
 Ever confirmed|0   |1

--- Comment #1 from Jakub Jelinek  ---
I think it started with r236274 or around that (I get ICE first with r236276
but that must be some glitch in our bisect seed, because the first change
appears in the inline ipa dump and is related to thunks).