public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/42366] New: ICE in ipa_write_node_info, at ipa-prop.c:2023
@ 2009-12-14 13:13 rguenth at gcc dot gnu dot org
2009-12-14 13:15 ` [Bug tree-optimization/42366] " rguenth at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-14 13:13 UTC (permalink / raw)
To: gcc-bugs
static int
f0 (char *s0, char *s1)
{
return __builtin_strlen (s0) > __builtin_strlen (s1);
}
int
f1 (char *s, int j)
{
if (f0 (s, ""))
return 1;
return j;
}
void
f2 (char *s)
{
f1 (s, 0);
}
fails with -O1 -fipa-cp -flto:
> ./cc1 -quiet -O1 -fipa-cp -flto t.i
t.i:23:1: internal compiler error: in ipa_write_node_info, at ipa-prop.c:2023
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in ipa_write_node_info, at ipa-prop.c:2023
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, lto
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42366
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/42366] ICE in ipa_write_node_info, at ipa-prop.c:2023
2009-12-14 13:13 [Bug tree-optimization/42366] New: ICE in ipa_write_node_info, at ipa-prop.c:2023 rguenth at gcc dot gnu dot org
@ 2009-12-14 13:15 ` rguenth at gcc dot gnu dot org
2009-12-21 17:55 ` jamborm at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-14 13:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-12-14 13:15 -------
This is btw the topmost ICE that appears when you run all of the testsuite
with -flto.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42366
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/42366] ICE in ipa_write_node_info, at ipa-prop.c:2023
2009-12-14 13:13 [Bug tree-optimization/42366] New: ICE in ipa_write_node_info, at ipa-prop.c:2023 rguenth at gcc dot gnu dot org
2009-12-14 13:15 ` [Bug tree-optimization/42366] " rguenth at gcc dot gnu dot org
@ 2009-12-21 17:55 ` jamborm at gcc dot gnu dot org
2009-12-22 19:05 ` jamborm at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2009-12-21 17:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jamborm at gcc dot gnu dot org 2009-12-21 17:55 -------
This happens because IPA-CP (as opposed to indirect inlining) does not
perform parameter modification analysis but the associated streaming
(which is shared in between the two) code assumes it has been done. I
will prepare a patch to address this shortly.
--
jamborm at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jamborm at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-12-21 17:55:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42366
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/42366] ICE in ipa_write_node_info, at ipa-prop.c:2023
2009-12-14 13:13 [Bug tree-optimization/42366] New: ICE in ipa_write_node_info, at ipa-prop.c:2023 rguenth at gcc dot gnu dot org
2009-12-14 13:15 ` [Bug tree-optimization/42366] " rguenth at gcc dot gnu dot org
2009-12-21 17:55 ` jamborm at gcc dot gnu dot org
@ 2009-12-22 19:05 ` jamborm at gcc dot gnu dot org
2010-01-04 18:19 ` jamborm at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2009-12-22 19:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jamborm at gcc dot gnu dot org 2009-12-22 19:05 -------
Patch posted to the mailing list:
http://gcc.gnu.org/ml/gcc-patches/2009-12/msg01040.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42366
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/42366] ICE in ipa_write_node_info, at ipa-prop.c:2023
2009-12-14 13:13 [Bug tree-optimization/42366] New: ICE in ipa_write_node_info, at ipa-prop.c:2023 rguenth at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-12-22 19:05 ` jamborm at gcc dot gnu dot org
@ 2010-01-04 18:19 ` jamborm at gcc dot gnu dot org
2010-01-04 19:35 ` jamborm at gcc dot gnu dot org
2010-01-04 20:05 ` jamborm at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-01-04 18:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jamborm at gcc dot gnu dot org 2010-01-04 18:19 -------
Subject: Bug 42366
Author: jamborm
Date: Mon Jan 4 18:18:54 2010
New Revision: 155630
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155630
Log:
2010-01-04 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/42366
* ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
edges with variable number of parameters.
* ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
flag instead of asserting it.
(ipa_read_node_info): Read uses_analysis_done flag.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-cp.c
trunk/gcc/ipa-prop.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42366
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/42366] ICE in ipa_write_node_info, at ipa-prop.c:2023
2009-12-14 13:13 [Bug tree-optimization/42366] New: ICE in ipa_write_node_info, at ipa-prop.c:2023 rguenth at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-01-04 18:19 ` jamborm at gcc dot gnu dot org
@ 2010-01-04 19:35 ` jamborm at gcc dot gnu dot org
2010-01-04 20:05 ` jamborm at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-01-04 19:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jamborm at gcc dot gnu dot org 2010-01-04 19:35 -------
Hm, with this patch we hit the subsequent assert on x86_64 (as opposed to
i686). I'm looking into this further.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42366
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/42366] ICE in ipa_write_node_info, at ipa-prop.c:2023
2009-12-14 13:13 [Bug tree-optimization/42366] New: ICE in ipa_write_node_info, at ipa-prop.c:2023 rguenth at gcc dot gnu dot org
` (4 preceding siblings ...)
2010-01-04 19:35 ` jamborm at gcc dot gnu dot org
@ 2010-01-04 20:05 ` jamborm at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-01-04 20:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jamborm at gcc dot gnu dot org 2010-01-04 20:05 -------
Please disregard the previous comment, I have too many screens on my screen.
This is now fixed.
--
jamborm at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42366
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-01-04 20:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-14 13:13 [Bug tree-optimization/42366] New: ICE in ipa_write_node_info, at ipa-prop.c:2023 rguenth at gcc dot gnu dot org
2009-12-14 13:15 ` [Bug tree-optimization/42366] " rguenth at gcc dot gnu dot org
2009-12-21 17:55 ` jamborm at gcc dot gnu dot org
2009-12-22 19:05 ` jamborm at gcc dot gnu dot org
2010-01-04 18:19 ` jamborm at gcc dot gnu dot org
2010-01-04 19:35 ` jamborm at gcc dot gnu dot org
2010-01-04 20:05 ` jamborm at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).