Bug 21054 - [4.1 Regression] ICE in ssa check for -ftree-vectorize -fprofile-generate
Summary: [4.1 Regression] ICE in ssa check for -ftree-vectorize -fprofile-generate
Status: RESOLVED DUPLICATE of bug 20947
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on: 20947
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-15 23:01 UTC by Janis Johnson
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: powerpc-linux
Target: powerpc-linux
Build: powerpc-linux
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 Janis Johnson 2005-04-15 23:01:31 UTC
Current mainline GCC gets an ICE in check_loop_closed_ssa_use building
any of ten benchmark programs from SPEC CPU2000 on powerpc-linux using
the options "-O2 -ftree-vectorize -maltivec -fprofile-generate".  This
minimized test case demonstrates the problem:
                                                                                
static int a[27];
void
foo (void)
{
   int i;
   for (i = 0; i < 27; i++)
      a[i] = 0;
}
                                                                                
elm3b11% /opt/gcc-nightly/mline/bin/gcc -O2 -ftree-vectorize -maltivec
-fprofile-generate -c bug.c
bug.c: In function ‘foo’:
bug.c:4: internal compiler error: in check_loop_closed_ssa_use, at
tree-ssa-loop-manip.c:394
                                                                                
Not that the information is useful, but the test starts failing on
mainline with the merge from tree-cleanup-branch on 2005-04-09, and it
started failing on the branch with a merge from mainline on 2005-04-01.
Comment 1 Andrew Pinski 2005-04-16 02:52:24 UTC
Very related to PR 20947.
Comment 2 Andrew Pinski 2005-04-17 23:04:03 UTC
This is a dup of bug 20947, I will add this testcase which is further reduced there.

*** This bug has been marked as a duplicate of 20947 ***