This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, committed] Add missing fold_convert (PR36316)
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Wed, 28 May 2008 20:46:55 +0200
- Subject: Re: [Patch, Fortran, committed] Add missing fold_convert (PR36316)
- References: <483C5F6A.3000509@net-b.de>
Tobias Burnus wrote:
gfortran was generating the following tree:
integer(kind=8) D.1026;
integer(kind=4) D.1025;
integer(kind=4) D.1024;
D.1024 = D.1022->local_start;
D.1025 = D.1022->local_end;
D.1026 = D.1025 - D.1024;
The problem is that "D.1025-D.1024" is integer(4) while D.1026 is
integer(8). With tree-checking enabled, this caused an ICE as Toon found
out (thanks!).
Thanks for fixing this - it not only fixed the test case, but also the
(rather large) original HIRLAM code (http://hirlam.org).
I tested it not only by compiling, but also running a couple of our test
cases; all went well.
Thanks, Tobias !
--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.indiv.nluug.nl/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/ml/gcc/2008-01/msg00009.html