re PR target/29250 (internal compiler error: in extract_insn, at recog.c:2084)

PR middle-end/29250
        * gcc.c-torture/compile/pr29250.c: New test.

From-SVN: r117747
This commit is contained in:
David Edelsohn 2006-10-15 16:21:14 +00:00 committed by David Edelsohn
parent 61e00a5e0d
commit 38f1b50d96
2 changed files with 37 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-10-15 David Edelsohn <edelsohn@gnu.org>
PR middle-end/29250
* gcc.c-torture/compile/pr29250.c: New test.
2006-10-15 Richard Guenther <rguenther@suse.de>
* gcc.dg/pr29299.c: New testcase.

View file

@ -0,0 +1,32 @@
/* We used to ICE because EXPAND_SUM was being used for all recursive calls
to expand_expr. */
struct TSparseEntry
{
int feat_index;
double entry;
};
struct TSparse
{
int vec_index;
int num_feat_entries;
struct TSparseEntry *features;
};
void
get_full_feature_matrix (struct TSparse* sparse_feature_matrix, int num_vec)
{
double *fm;
int v, f;
for (v=0; v < num_vec; v++)
{
for (f=0; f < sparse_feature_matrix[v].num_feat_entries; f++)
{
long long offs = sparse_feature_matrix[v].vec_index
+ sparse_feature_matrix[v].features[f].feat_index;
fm[offs] = sparse_feature_matrix[v].features[f].entry;
}
}
}