This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lno] fix division by zero
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Dorit Naishlos <DORIT at il dot ibm dot com>
- Cc: Daniel Berlin <dberlin at dberlin dot org>, Pop Sébastian<pop at gauvain dot u-strasbg dot fr>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 04 Jan 2004 13:43:02 +0100
- Subject: Re: [lno] fix division by zero
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <OFF30C0A56.97487BB8-ONC2256E11.002A0008-C2256E11.002E002D@il.ibm.com>
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)