Bug#442036: gcc-4.2: ICE on Alpha with new GSL sources
On 12 September 2007 at 21:00, Falk Hueffner wrote:
| 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.
Many thanks, Falk. I'll prepare 1.9.90-2 where Alpha gets -O2. BTW do we
still need this special case for Alpha:
# edd 29 Sep 2005 alpha needs -mieee with gcc 4.0
ifeq ($(arch),alpha)
CFLAGS += -mieee
endif
Dirk
--
Three out of two people have difficulties with fractions.
Reply to: