zouq <[EMAIL PROTECTED]> wrote:

> /////testcom.c
> int main (void)
> {
>         int i,j;
>         int u[100][100], v[100][100],
>             p[100][100], unew[100][100],
>             vnew[100][100],pnew[100][100],
>             uold[100][100],vold[100][100],
>             pold[100][100],cu[100][100],
>             cv[100][100],z[100][100],h[100][100],psi[100][100];
>
>          int tdts8=2;
>          int tdtsdx=3;
>          int tdtsdy=4;
>
>          for (i=0;i<100;i++)
>            for (j=0;j<100;j++)
>            {
>                unew[i+1][j]=uold[i+1][j]+tdts8*(z[i+1][j]+z[i+1][j])*
>                             (cv[i+1][j+1]+cv[i][j+1]+cv[i][j]+cv[i+1][j])
> -tdtsdx*(h[i+1][j]-h[i][j]);
>                /*vnew[i][j+1]=vold[i][j+1]-tdts8*(z[i+1][j+1]+z[i][j+1])
>                             *(cu[i+1][j+1]+cu[i][j+1]+cu[i][j]+cu[i+1][j])
> -tdtsdy*(h[i][j+1]-h[i][j]);*/
>                /*pnew[i][j]=pold[i][j]-tdtsdx*(cu[i+1][j]-cu[i][j])-
>                             tdtsdy*(cv[i][j+1]-cv[i][j]);*/
>
>            }
>
>          for (i=0;i<100;i++)
>            for (j=0;j<100;j++)
>              printf ("%d\n%d\n%d\n",unew[i][j], vnew[i][j], pnew[i][j]);
>
>          return 1;
> }
>
> first i made gcc-4.1-20050320 a cross-compiler for powerpc.
> when i compile the above program,  it goes like this:
>
> testcom.c:34: internal compiler error: in schedule_insns, at
sched-rgn.c:2549
>
> who can tell me why?
> why can it bring compiler error?

Any compiler error, *whichever* source file you use, is a bug of GCC. Would
you please submit this as a proper bugreport in Bugzilla? Read the
instructions at http://gcc.gnu.org/bugs.html.

Thanks
-- 
Giovanni Bajo

Reply via email to