* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
@ 2013-08-12 5:44 ` mpolacek at gcc dot gnu.org
2013-08-12 7:03 ` mpolacek at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-08-12 5:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-08-12
CC| |mpolacek at gcc dot gnu.org
Target Milestone|--- |4.9.0
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
2013-08-12 5:44 ` [Bug middle-end/58125] " mpolacek at gcc dot gnu.org
@ 2013-08-12 7:03 ` mpolacek at gcc dot gnu.org
2013-08-12 7:28 ` mpolacek at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-08-12 7:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r201439.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
2013-08-12 5:44 ` [Bug middle-end/58125] " mpolacek at gcc dot gnu.org
2013-08-12 7:03 ` mpolacek at gcc dot gnu.org
@ 2013-08-12 7:28 ` mpolacek at gcc dot gnu.org
2013-08-17 20:18 ` hubicka at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-08-12 7:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Seems like we're trying to access &(*inline_summary_vec)[node->uid]; where the
node->uid is 8, but inline_summary_vec's length is 8.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
` (2 preceding siblings ...)
2013-08-12 7:28 ` mpolacek at gcc dot gnu.org
@ 2013-08-17 20:18 ` hubicka at gcc dot gnu.org
2013-09-04 16:44 ` hubicka at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-08-17 20:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org
--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
mine.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
` (3 preceding siblings ...)
2013-08-17 20:18 ` hubicka at gcc dot gnu.org
@ 2013-09-04 16:44 ` hubicka at gcc dot gnu.org
2013-10-30 13:28 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-09-04 16:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
OK, the testcase no longer reproduces, but the dump seems clear. We introduced
new aliases but did not resize the summary vector, because we do not need info
for these. Then we attempt to free it and ICE.
I am testing
Index: ipa-inline-analysis.c
===================================================================
--- ipa-inline-analysis.c (revision 202199)
+++ ipa-inline-analysis.c (working copy)
@@ -4019,7 +4019,8 @@
if (!inline_edge_summary_vec.exists ())
return;
FOR_EACH_DEFINED_FUNCTION (node)
- reset_inline_summary (node);
+ if (!node->symbol.alias)
+ reset_inline_summary (node);
if (function_insertion_hook_holder)
cgraph_remove_function_insertion_hook (function_insertion_hook_holder);
function_insertion_hook_holder = NULL;
and will commit it along with the PR if that passes.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
` (4 preceding siblings ...)
2013-09-04 16:44 ` hubicka at gcc dot gnu.org
@ 2013-10-30 13:28 ` rguenth at gcc dot gnu.org
2013-11-22 10:54 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-10-30 13:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Did you fix it?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
` (5 preceding siblings ...)
2013-10-30 13:28 ` rguenth at gcc dot gnu.org
@ 2013-11-22 10:54 ` rguenth at gcc dot gnu.org
2013-11-27 16:55 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-22 10:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
` (6 preceding siblings ...)
2013-11-22 10:54 ` rguenth at gcc dot gnu.org
@ 2013-11-27 16:55 ` jakub at gcc dot gnu.org
2014-01-17 18:35 ` law at redhat dot com
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-11-27 16:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The testcase stopped reproducing with r202100. But from quick look at the #c5
patch and ipa-inline-analysis.c it doesn't seem to be applied. Honza?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
` (7 preceding siblings ...)
2013-11-27 16:55 ` jakub at gcc dot gnu.org
@ 2014-01-17 18:35 ` law at redhat dot com
2014-01-17 21:11 ` hubicka at gcc dot gnu.org
2014-01-17 21:18 ` hubicka at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: law at redhat dot com @ 2014-01-17 18:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at redhat dot com
--- Comment #8 from Jeffrey A. Law <law at redhat dot com> ---
Jan. Ping! If this is still an issue, can you update the patch for the trunk.
If not, can you appropriately close this BZ?
Thanks,
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
` (8 preceding siblings ...)
2014-01-17 18:35 ` law at redhat dot com
@ 2014-01-17 21:11 ` hubicka at gcc dot gnu.org
2014-01-17 21:18 ` hubicka at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2014-01-17 21:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Fri Jan 17 21:10:42 2014
New Revision: 206734
URL: http://gcc.gnu.org/viewcvs?rev=206734&root=gcc&view=rev
Log:
PR middle-end/58125
* ipa-inline-analysis.c (inline_free_summary):
Do not free summary of aliases.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-inline-analysis.c
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/58125] [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions
2013-08-11 12:57 [Bug middle-end/58125] New: [4.9 Regression] ICE: in operator[], at vec.h:827 with -fno-inline-small-functions zsojka at seznam dot cz
` (9 preceding siblings ...)
2014-01-17 21:11 ` hubicka at gcc dot gnu.org
@ 2014-01-17 21:18 ` hubicka at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2014-01-17 21:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58125
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 12+ messages in thread