(third try, wow you guys really don't want to receive emails !)

Dear Sir/Madam
I have come across a problem when trying to compile a simple program using 
Cygwin

I just did a fresh install of Cygwin from the net on W7 32bit PC and included 
make/g++ to build my software (which builds fine on other native linux machines)

When i try to compile the attached file i get this error

$ gcc -msse2 -c -O3 test.c
test.c: In function `vclrx':
test.c:43: internal compiler error: in output_constant_pool, at varasm.c:3190
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://cygwin.com/problems.html> for instructions.

Without the -O3 option all is well

Help appreciated.

Thanks

Phil.


#include <stdio.h>
#include <xmmintrin.h>

void vclrx(float *fc, int k, int n, int f);

void vclrx_csal(
    float *C,
    int K,
    int N,
    int XFLAG);


void vclrx(float *fc, int k, int n, int f)
{
  __m128 *pC = (__m128*)fc;
  __m128 c0,c1,c2,c3;

  if (k != 1)
  {
    printf("vmovx_csal\n");
    vclrx_csal(fc,k,n,f);
    return;
  }

  if (n > 3)
  {
    c0 = _mm_xor_ps(c0,c0);

    while (n >= 4)
    {
      *pC++ = c0;

      n -= 4;
    }
  }

  return;
}

void vclrx_csal(
    float *C,
    int K,
    int N,
    int XFLAG)
{
    ( void ) XFLAG;

    int    i;
    float  zero;

    zero = 0.0;
    C -= K;

    for ( i = 0; i < N; i++ )
    {
        *( C += K ) = zero;
    }
}
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to