public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/39007] New: -ftree-loop-distribution ICEs
@ 2009-01-28 19:56 kazu at gcc dot gnu dot org
2009-01-29 2:23 ` [Bug tree-optimization/39007] " kazu at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: kazu at gcc dot gnu dot org @ 2009-01-28 19:56 UTC (permalink / raw)
To: gcc-bugs
Consider:
void
foo (int *__restrict__ p, int *__restrict__ q, int count)
{
while (--count >= 0)
{
*p++ = 0;
*q++ = 0;
}
}
I get:
$ ./cc1 -quiet -O2 -ftree-loop-distribution min.c
min.c: In function 'foo':
min.c:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
This is as of Revision 143741, which is after the fix for PR
tree-optimization/38997 has gone in:
http://gcc.gnu.org/ml/gcc-cvs/2009-01/msg00752.html
FWIW, if I try:
void
foo (int *__restrict__ p, int *__restrict__ q, int count)
{
int i;
for (i = 0; i < count; i++)
{
*p++ = 0;
*q++ = 0;
}
}
I get:
*** glibc detected *** ./cc1: malloc(): memory corruption: 0xf7efd160 ***
I am guessing that depending on the exact memory allocation pattern,
different parts of memory get corrupted.
--
Summary: -ftree-loop-distribution ICEs
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kazu at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39007
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/39007] -ftree-loop-distribution ICEs
2009-01-28 19:56 [Bug tree-optimization/39007] New: -ftree-loop-distribution ICEs kazu at gcc dot gnu dot org
@ 2009-01-29 2:23 ` kazu at gcc dot gnu dot org
2009-01-29 16:11 ` kazu at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: kazu at gcc dot gnu dot org @ 2009-01-29 2:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from kazu at gcc dot gnu dot org 2009-01-29 02:23 -------
I've got a patch.
--
kazu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |kazu at gcc dot gnu dot org
|dot org |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39007
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/39007] -ftree-loop-distribution ICEs
2009-01-28 19:56 [Bug tree-optimization/39007] New: -ftree-loop-distribution ICEs kazu at gcc dot gnu dot org
2009-01-29 2:23 ` [Bug tree-optimization/39007] " kazu at gcc dot gnu dot org
@ 2009-01-29 16:11 ` kazu at gcc dot gnu dot org
2009-01-29 18:23 ` kazu at gcc dot gnu dot org
2009-01-29 18:31 ` kazu at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: kazu at gcc dot gnu dot org @ 2009-01-29 16:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from kazu at gcc dot gnu dot org 2009-01-29 16:11 -------
Patch posted.
--
kazu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2009-
| |01/msg01449.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39007
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/39007] -ftree-loop-distribution ICEs
2009-01-28 19:56 [Bug tree-optimization/39007] New: -ftree-loop-distribution ICEs kazu at gcc dot gnu dot org
2009-01-29 2:23 ` [Bug tree-optimization/39007] " kazu at gcc dot gnu dot org
2009-01-29 16:11 ` kazu at gcc dot gnu dot org
@ 2009-01-29 18:23 ` kazu at gcc dot gnu dot org
2009-01-29 18:31 ` kazu at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: kazu at gcc dot gnu dot org @ 2009-01-29 18:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from kazu at gcc dot gnu dot org 2009-01-29 18:23 -------
Subject: Bug 39007
Author: kazu
Date: Thu Jan 29 18:23:21 2009
New Revision: 143767
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143767
Log:
gcc/
PR tree-optimization/39007
* tree-loop-distribution.c (generate_builtin): Use
recompute_dominator to compute the immediate dominator of the
basic block just after the loop.
gcc/testsuite/
PR tree-optimization/39007
* gcc.dg/tree-ssa/pr39007.c: New.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr39007.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-loop-distribution.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39007
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/39007] -ftree-loop-distribution ICEs
2009-01-28 19:56 [Bug tree-optimization/39007] New: -ftree-loop-distribution ICEs kazu at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-01-29 18:23 ` kazu at gcc dot gnu dot org
@ 2009-01-29 18:31 ` kazu at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: kazu at gcc dot gnu dot org @ 2009-01-29 18:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from kazu at gcc dot gnu dot org 2009-01-29 18:31 -------
Fixed.
--
kazu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39007
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-01-29 18:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-28 19:56 [Bug tree-optimization/39007] New: -ftree-loop-distribution ICEs kazu at gcc dot gnu dot org
2009-01-29 2:23 ` [Bug tree-optimization/39007] " kazu at gcc dot gnu dot org
2009-01-29 16:11 ` kazu at gcc dot gnu dot org
2009-01-29 18:23 ` kazu at gcc dot gnu dot org
2009-01-29 18:31 ` kazu 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).