[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#442036: gcc-4.2: ICE on Alpha with new GSL sources



Dirk Eddelbuettel <edd@debian.org> writes:

> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
> -I. -I.. -I.. -I..    -mieee -mfp-rounding-mode=d -Wall -pipe -fexceptions
> -D_REENTRANT -g -O3 -mieee -c -o minmax.lo minmax.c
>  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -mieee -mfp-rounding-mode=d -Wall
> -pipe -fexceptions -D_REENTRANT -g -O3 -mieee -c minmax.c  -fPIC -DPIC -o
> .libs/minmax.o
> minmax_source.c: In function 'gsl_vector_long_double_max':
> minmax_source.c:43: internal compiler error: in iv_analyze_expr, at
> loop-iv.c:911
> Please submit a full bug report,

I can reproduce this with 4.2.1-5 and 4.3.0 20070829. Test case:

long double f(long double *data, long n) {
    long double max = 0;
    long i;
    for (i = 0; i < n; i++) {
	if (data[i])
	    max = 1;
    }
    return max;
}

fails at -O3, OK at -O2.

-- 
	Falk




Reply to: