Bug 15836 - ICE in genmodes.c:746 (-fprofile-generate)
Summary: ICE in genmodes.c:746 (-fprofile-generate)
Status: RESOLVED DUPLICATE of bug 16490
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build, ice-on-valid-code
Depends on:
Blocks: 13882
  Show dependency treegraph
 
Reported: 2004-06-05 17:53 UTC by Richard Biener
Modified: 2004-08-16 22:03 UTC (History)
2 users (show)

See Also:
Host: ia64-linux-gnu
Target: ia64-linux-gnu
Build: ia64-linux-gnu
Known to work: 3.4.0
Known to fail:
Last reconfirmed: 2004-06-05 19:14:51


Attachments
preprocessed source (23.77 KB, application/octet-stream)
2004-06-05 18:17 UTC, Richard Biener
Details
small testcase (228 bytes) (145 bytes, text/plain)
2004-06-05 19:08 UTC, Serge Belyshev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Biener 2004-06-05 17:53:15 UTC
During profiledbootstrap the compiler ICEs in genmodes.c:746.

See http://gcc.gnu.org/ml/gcc/2004-06/msg00238.html for report and first analysis.
Comment 1 Andrew Pinski 2004-06-05 18:01:09 UTC
Can you attach the preprocessed source?
Comment 2 Richard Biener 2004-06-05 18:17:29 UTC
Created attachment 6474 [details]
preprocessed source

Here it is.
Comment 3 Serge Belyshev 2004-06-05 19:08:58 UTC
Created attachment 6475 [details]
small testcase (228 bytes)

use '-O1 -fprofile-generate'
Comment 4 Andrew Pinski 2004-06-05 19:14:49 UTC
Here is a slightly different reduced testcase:
extern void qsort ();
void calc_wider_mode (void)
{
  unsigned int c;
  for (c = 0; c < 10; c++)
    if (c != 0)
      qsort ();
}
Comment 5 Andrew Pinski 2004-06-05 19:22:14 UTC
Here is my small testcase without loops (but with gotos):
void t();
void t1 ()
{
  int c = 0;
  goto lc;
lb: if (c != 0) {t();}
lc: if ((c+=1) <= 9) goto lb;
}
Comment 6 Richard Biener 2004-06-07 13:25:20 UTC
Oh, this is a regression to 3.4.0, btw.
Comment 7 Jim Wilson 2004-08-16 22:03:52 UTC
I reproduced this problem a week ago, along with 16490.  I first fixed 16490,
and then tried a profiledbootstrap again, and this time it worked, so there was
only one bug, and it was the same bug reported in 16490.

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