This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/17624] [4.0 Regression] ICE: SSA corruption (another one)


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-22 23:37 -------
Here is a reduced testcase:
int get_chunk(int);
int chunks_number;
void seek_close_chunk(void);
int recover_errors;
#define SKIP_CHUNKS 1

void
get_chunk_name(int chunk_num)
{
  int chkid; 
  int chunks=0;
  int last_chunk=0;
  try
  { 
    int chunks_left=-1;
    int chksize;
    for(;(chunks_left--)&&(chksize=get_chunk(chkid));last_chunk=chunks)
    {
      if (chunks++==chunk_num) { break; }
      seek_close_chunk();
    }
  }
  catch(int ex) {
    if (chunks_number < 0)
      chunks_number=(recover_errors>SKIP_CHUNKS)?chunks:last_chunk;
  };
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-22 23:37:35
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17624


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]