public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/48170] New: ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1}
@ 2011-03-17 17:46 zsojka at seznam dot cz
2011-03-18 9:29 ` [Bug tree-optimization/48170] " mkuvyrkov at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2011-03-17 17:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48170
Summary: ICE: in hoist_code, at gcse.c:4524 with -fgcse --param
max-hoist-depth={0,1}
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
CC: mkuvyrkov@gcc.gnu.org
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 23701
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23701
reduced testcase
Compiler output:
$ gcc -O -fgcse --param max-hoist-depth=1 testcase.c
testcase.c: In function 'bar':
testcase.c:10:1: internal compiler error: in hoist_code, at gcse.c:4524
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
The same happens for max-hoist-depth=1, though if I understand the
documentation correctly, 1 means "depth 1", 0 means "unlimited" (so maybe
"gcc_assert (MAX_HOIST_DEPTH > 1)" checks the value is not one of these
extrems?).
Tested revisions:
r171088 - crash
4.6 r170955 - crash
4.5 - doesn't know max-hoist-depth
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/48170] ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1}
2011-03-17 17:46 [Bug tree-optimization/48170] New: ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1} zsojka at seznam dot cz
@ 2011-03-18 9:29 ` mkuvyrkov at gcc dot gnu.org
2011-03-18 11:57 ` [Bug rtl-optimization/48170] " mkuvyrkov at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2011-03-18 9:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48170
Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.03.18 09:28:02
Ever Confirmed|0 |1
--- Comment #1 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> 2011-03-18 09:28:02 UTC ---
Mine.
The asserts should definitely say (MAX_HOIST_DEPTH == 0 || MAX_HOIST_DEPTH >
1). I will need to investigate why this is failing for depth == 1.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/48170] ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1}
2011-03-17 17:46 [Bug tree-optimization/48170] New: ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1} zsojka at seznam dot cz
2011-03-18 9:29 ` [Bug tree-optimization/48170] " mkuvyrkov at gcc dot gnu.org
@ 2011-03-18 11:57 ` mkuvyrkov at gcc dot gnu.org
2011-03-18 17:20 ` mkuvyrkov at gcc dot gnu.org
2011-03-18 17:28 ` mkuvyrkov at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2011-03-18 11:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48170
Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|tree-optimization |rtl-optimization
--- Comment #2 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> 2011-03-18 10:57:25 UTC ---
The asserts are bogus, they probably used to verify an invariant that was
removed by a later improvement. Will check in a fix soon.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/48170] ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1}
2011-03-17 17:46 [Bug tree-optimization/48170] New: ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1} zsojka at seznam dot cz
2011-03-18 9:29 ` [Bug tree-optimization/48170] " mkuvyrkov at gcc dot gnu.org
2011-03-18 11:57 ` [Bug rtl-optimization/48170] " mkuvyrkov at gcc dot gnu.org
@ 2011-03-18 17:20 ` mkuvyrkov at gcc dot gnu.org
2011-03-18 17:28 ` mkuvyrkov at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2011-03-18 17:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48170
--- Comment #3 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> 2011-03-18 17:12:24 UTC ---
Author: mkuvyrkov
Date: Fri Mar 18 17:12:19 2011
New Revision: 171155
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171155
Log:
PR rtl-optimization/48170
* gcse.c (hoist_code): Remove bogus asserts.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gcse.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/48170] ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1}
2011-03-17 17:46 [Bug tree-optimization/48170] New: ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1} zsojka at seznam dot cz
` (2 preceding siblings ...)
2011-03-18 17:20 ` mkuvyrkov at gcc dot gnu.org
@ 2011-03-18 17:28 ` mkuvyrkov at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2011-03-18 17:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48170
Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> 2011-03-18 17:24:03 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-03-18 17:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-17 17:46 [Bug tree-optimization/48170] New: ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1} zsojka at seznam dot cz
2011-03-18 9:29 ` [Bug tree-optimization/48170] " mkuvyrkov at gcc dot gnu.org
2011-03-18 11:57 ` [Bug rtl-optimization/48170] " mkuvyrkov at gcc dot gnu.org
2011-03-18 17:20 ` mkuvyrkov at gcc dot gnu.org
2011-03-18 17:28 ` mkuvyrkov at gcc dot gnu.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).