This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lno] fix division by zero


Dorit Naishlos wrote:

> I wrote:

Well, I tried, and I tried, but I can't get no ... vectorization:

That's because the vectorizer currently doesn't support unary operations.
It's very trivial to add this support, and I will, shortly. A lot of the
restrictions that are imposed right now are entirely arbitrary - I posted
the vectorizer as soon as there was an infrastructure with some minimal
vectorization capabilities. The more trivial limitations will be the first
ones to be removed.

Ah, OK, I was hoping that that was the problem - that the current implementation didn't support broadcasting scalars to arrays.


In any event, I can't test my next version:

DIMENSION A(1000000), B(1000000), C(1000000)
READ*, X, Y
A = LOG(X); B = LOG(Y); C = A + B
PRINT*, C(500000)
END

because the stage 1 compiler miscompiles gengtype ....

stage1/xgcc -Bstage1/ -B/usr/lno/powerpc-unknown-linux-gnu/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengtype \
gengtype.o gengtype-lex.o gengtype-yacc.o ../libiberty/libiberty.a
./gengtype
make[2]: *** [s-gtype] Segmentation fault
make[2]: Leaving directory `/home/toon/compilers/lno/obj/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/home/toon/compilers/lno/obj/gcc'
make: *** [bootstrap] Error 2


(on powerpc-unknown-linux-gnu).

I'll just have to wait until the branch stabilizes ... thanks for your interesting work !

--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]