--- Comment #7 from zsojka at seznam dot cz 2010-05-06 16:47 ---
You are right, the reduced testcase from comment #4 crashes with:
Command line:
$ gcc -O1 -fgcse pr44012.c
Tested revisions:
r159109 - crash
r158683 - crash
r157702 - crash
r153685 - crash
4.5 r158978 - crash
4.4 r158133
--- Comment #8 from hjl dot tools at gmail dot com 2010-05-06 18:57 ---
(In reply to comment #4)
> Created an attachment (id=20589)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20589&action=view) [edit]
> reduced testcase
>
> Command line:
> gcc -O1 -fgcse -findirect-inlining pr4
--- Comment #9 from hjl dot tools at gmail dot com 2010-05-06 21:01 ---
Created an attachment (id=20590)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20590&action=view)
A patch
This patch avoids ICE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44012
--- Comment #10 from zsojka at seznam dot cz 2010-05-07 00:32 ---
(In reply to comment #9)
That patch fixes all testcases and flag combinations I tried (eg. gcc doesn't
crash)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44012
--- Comment #11 from rguenth at gcc dot gnu dot org 2010-05-07 09:46
---
There may be a dup of this bug (can't find it right now).
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
-
--- Comment #12 from vmakarov at redhat dot com 2010-05-07 17:49 ---
When allocno is finished, its some info is propagated into upper allocno.
When several allocnos with same regno are finished, info can be propagated
directly to survived upper allocno or through one allocno will be f
--- Comment #13 from hjl at gcc dot gnu dot org 2010-05-10 14:02 ---
Subject: Bug 44012
Author: hjl
Date: Mon May 10 14:02:43 2010
New Revision: 159223
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159223
Log:
Nullify regno_allocno_map of the removed allocno.
gcc/
2010-05-10
--- Comment #14 from hjl at gcc dot gnu dot org 2010-05-10 14:05 ---
Subject: Bug 44012
Author: hjl
Date: Mon May 10 14:05:16 2010
New Revision: 159224
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159224
Log:
Nullify regno_allocno_map of the removed allocno.
gcc/
2010-05-10
--- Comment #15 from rguenth at gcc dot gnu dot org 2010-05-19 12:54
---
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
Status|NEW