[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-12-01 Thread markus at trippelsdorf dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

Markus Trippelsdorf markus at trippelsdorf dot de changed:

   What|Removed |Added

 CC||markus at trippelsdorf dot
   ||de

--- Comment #4 from Markus Trippelsdorf markus at trippelsdorf dot de 
2011-12-01 15:06:11 UTC ---
With the assert in cgraph_add_edge_to_call_site_hash commented out I get:

../../gcc/gcc/c-parser.c: In function ‘c_parser_declaration_or_fndef’:
../../gcc/gcc/c-parser.c:1449:48: internal compiler error: Segmentation fault


[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-12-01 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch changed:

   What|Removed |Added

 CC||Joost.VandeVondele at mat
   ||dot ethz.ch

--- Comment #5 from Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch 
2011-12-01 15:10:25 UTC ---
*** Bug 51355 has been marked as a duplicate of this bug. ***


[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-12-01 Thread howarth at nitro dot med.uc.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

Jack Howarth howarth at nitro dot med.uc.edu changed:

   What|Removed |Added

 CC||howarth at nitro dot
   ||med.uc.edu

--- Comment #6 from Jack Howarth howarth at nitro dot med.uc.edu 2011-12-01 
18:12:35 UTC ---
On x86_64-apple-darwin11, this failure occurs for a simple lto-bootstrap and
doesn't require bootstrap-profiled to trigger the problem.


[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-12-01 Thread dnovillo at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

--- Comment #7 from dnovillo at google dot com dnovillo at google dot com 
2011-12-01 18:20:37 UTC ---
On Thu, Dec 1, 2011 at 13:12, howarth at nitro dot med.uc.edu
gcc-bugzi...@gcc.gnu.org wrote:
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

 Jack Howarth howarth at nitro dot med.uc.edu changed:

           What    |Removed                     |Added
 
                 CC|                            |howarth at nitro dot
                   |                            |med.uc.edu

 --- Comment #6 from Jack Howarth howarth at nitro dot med.uc.edu 2011-12-01 
 18:12:35 UTC ---
 On x86_64-apple-darwin11, this failure occurs for a simple lto-bootstrap and
 doesn't require bootstrap-profiled to trigger the problem.

I'm about to commit a patch that should fix this bug.


Diego.


[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-12-01 Thread dnovillo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

--- Comment #8 from Diego Novillo dnovillo at gcc dot gnu.org 2011-12-01 
21:05:14 UTC ---
Author: dnovillo
Date: Thu Dec  1 21:05:10 2011
New Revision: 181894

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=181894
Log:
PR bootstrap/51346
* ipa-inline.c (can_inline_edge_p): If the edge E has a
statement, use the statement's inline indicator instead
of E's.
Remove consistency check.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-inline.c


[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-12-01 Thread dnovillo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

Diego Novillo dnovillo at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #9 from Diego Novillo dnovillo at gcc dot gnu.org 2011-12-01 
21:11:22 UTC ---
Fixed.  http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00107.html.


[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-11-30 Thread dnovillo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

Diego Novillo dnovillo at gcc dot gnu.org changed:

   What|Removed |Added

 CC||hubicka at gcc dot gnu.org

--- Comment #3 from Diego Novillo dnovillo at gcc dot gnu.org 2011-11-30 
20:17:08 UTC ---
The reason we get into this ICE is because the call to cgraph_edge() has the
side effect of adding entries to e-caller-call_site_hash:

  if (n  100)
{ 
  node-call_site_hash = htab_create_ggc (120, edge_hash, edge_eq, NULL);
  for (e2 = node-callees; e2; e2 = e2-next_callee)
cgraph_add_edge_to_call_site_hash (e2);
  for (e2 = node-indirect_calls; e2; e2 = e2-next_callee)
cgraph_add_edge_to_call_site_hash (e2);
}

When cgraph_edge is called with n  100, the call to
cgraph_add_edge_to_call_site_hash asserts because e-call_stmt is already in
the hash table.

Honza, why is this a problem?  The code is expecting to find the slot empty,
but I'm not sure why it expects that.  Any pointers?


Thanks.  Diego.


[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-11-29 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

--- Comment #1 from H.J. Lu hjl.tools at gmail dot com 2011-11-29 17:47:40 
UTC ---
It is caused by revision 181803:

http://gcc.gnu.org/ml/gcc-cvs/2011-11/msg01097.html


[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-11-29 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

   Target Milestone|--- |4.7.0


[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-11-29 Thread dnovillo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

--- Comment #2 from Diego Novillo dnovillo at gcc dot gnu.org 2011-11-29 
17:50:01 UTC ---
Investigating.


[Bug bootstrap/51346] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled

2011-11-29 Thread dnovillo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51346

Diego Novillo dnovillo at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2011-11-29
 Ever Confirmed|0   |1