--------------------------------- 源邮件 ---------------------------------
主题:   [bug fmodulo-sched/gcc]
发件人: "zouq" <[EMAIL PROTECTED]>
日期:   Mon, 三月 28, 2005 8:09 am
收件人: [EMAIL PROTECTED]
--------------------------------------------------------------------------

1.i build a cross-compiler for powerpc
the version of gcc is gcc-4.1-20050306
../../source/gcc-4.1-20050306/configure -target=powerpc-unknown-eabi
-disable-shared --enable-languages=c -prefix=/opt/crosstool-2 -v :
(reconfigured) ../../source/gcc-4.1-20050306/configure
-target=powerpc-unknown-eabi -prefix=/opt/crosstool-2/ -enable-languages=c -v

2.the source file
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;
}

3.the flags i use
powerpc-unknown-eabi-gcc -O2 testcom.c -fmodulo-sched -mtune=power5 -mads
and it goes like this:
testcom.c:34: internal compiler error: in schedule_insns, at
sched-rgn.c:2549 Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

and i also have another experiment:
powerpc-unknown-eabi-gcc -O2 testcom.c -mads
i will be all right.







Reply via email to