Bug 22135 - The gcc-4.1-20050611 compiler ICE's using -ftree-vectorize in conjunction with -fdump-tree-all-details-stats
Summary: The gcc-4.1-20050611 compiler ICE's using -ftree-vectorize in conjunction wit...
Status: RESOLVED DUPLICATE of bug 22029
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.1.0
: P2 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-21 07:13 UTC by Ralf Recker
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i586-pc-linux-gnu
Target: i586-pc-linux-gnu
Build: i586-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Recker 2005-06-21 07:13:54 UTC
gcc-4.1-200506011 compiler ICE's using -ftree-vectorize AND
-fdump-tree-all-details-stats in conjunction. Leave out one of both
options and you got a successful compilation.


Command:

/opt/gcc-4.1-20050611/bin/gcc -O3 -march=pentium4 -msse3 -save-temps
test.c -o test -ftree-vectorize -ftree-vectorizer-verbose=5
-fdump-tree-all-details-stats

Error message:

test.c: In function 'main':
test.c:2: internal compiler error: in op_iter_init_maydef, at
tree-flow-inline.h:1065
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Source Code (I wrote a stupid little program to reproduce the error):

int main(void)
{
    int a[1024];
    int b[1024];
    
    int c[1024];
    
    int i, j = 0;
    
    for (i = 0; i < 1024; i++) {
	a[i] = i;
	b[i] = 1023 - i;
    }

    for (i = 0; i < 1024; i++)
	c[i] = a[i] + b[i];

    for (i = 0; i < 1024; i++)
	j = j + c[i];
	
    return j;
}

P.S.: Placed under GPL by Ralf Recker <Ralf_Recker@gmx.de> :-)

Preprocessed source:

# 1 "test.c"
# 0 "<built-in>"
# 1 "<command line>"
# 1 "test.c"
int main(void)
{
    int a[1024];
    int b[1024];

    int c[1024];

    int i, j = 0;

    for (i = 0; i < 1024; i++) {
 a[i] = i;
 b[i] = 1023 - i;
    }

    for (i = 0; i < 1024; i++)
 c[i] = a[i] + b[i];

    for (i = 0; i < 1024; i++)
 j = j + c[i];

    return j;
}
Comment 1 Ralf Recker 2005-06-21 07:25:00 UTC
To all attendants of the developer summit:

Greet the elks (moose?) from me ;-)
Comment 2 Andrew Pinski 2005-06-21 12:48:01 UTC
This is a dup of bug 22029 which I reported.  Thanks for your bug report, hopefully someone will fix 
this soon.

*** This bug has been marked as a duplicate of 22029 ***
Comment 3 Ralf Recker 2005-06-23 07:08:07 UTC
gcc-4.1-20050618 ICE's with the same error message.
Comment 4 Ralf Recker 2005-06-23 08:40:12 UTC
P.S.: Why comes .c.t59.copyprop4 before .c.t72.copyprop3 (At that point the ICE
seems to occur)?
Comment 5 Andrew Pinski 2005-07-03 11:52:02 UTC
(In reply to comment #4)
> P.S.: Why comes .c.t59.copyprop4 before .c.t72.copyprop3 (At that point the ICE
> seems to occur)?

I forgot to mention this is due to how tree-optimizate works, it is really a bug (a known one), please file 
so we don't lose track of it.
Comment 6 Ralf Recker 2005-07-05 07:25:16 UTC
(In reply to comment #5)
> I forgot to mention this is due to how tree-optimizate works, it is really a
bug (a known one), please file 
> so we don't lose track of it.

Sorry, I didn't understood your answer fully (stupid me :-)
So is it entered in the BugZilla database, shall I enter it or shall we leave it
alone?

    Ralf Recker
Comment 7 Andrew Pinski 2005-07-05 12:56:35 UTC
(In reply to comment #6)
> Sorry, I didn't understood your answer fully (stupid me :-)
> So is it entered in the BugZilla database, shall I enter it or shall we leave it
> alone?

It is known meaning people have reported it to the GCC list before but that is it.
A new bugzilla bug would be nice to keep track of it.
Comment 8 Andrew Pinski 2005-07-12 00:12:12 UTC
(In reply to comment #7)
> It is known meaning people have reported it to the GCC list before but that is it.
> A new bugzilla bug would be nice to keep track of it.

I just found there was a bug was already filed: PR 20962.
Comment 9 Ralf Recker 2005-07-14 07:21:46 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > It is known meaning people have reported it to the GCC list before but that
is it.
> > A new bugzilla bug would be nice to keep track of it.
> 
> I just found there was a bug was already filed: PR 20962.
> 

Thank you very much!