This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] PR34540 and 34387 cshift, eoshift, kind=1 and kind=2 arguments.
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 05 Jan 2008 23:03:25 -0800
- Subject: Re: [patch, fortran] PR34540 and 34387 cshift, eoshift, kind=1 and kind=2 arguments.
- References: <47801B85.6090400@verizon.net>
Jerry DeLisle wrote:
Hi,
This patch is a twofer. It should fix the optional_dim_2.f90 problem on
targets like hppa and mips. I have not tested there and I am waiting
for test results.
The problem is fixed by creating a temporary which is then used to
convert the type of the dummy argument. Then the address of this
temporary is passed to the function, testing for NULL along the way. New
test case developed from Thomas test case in PR34540.
Regression tested on x86-64, ppc64, and i686-Cygwin.
OK for trunk. Note: I will wait for other target test results before
committing.
David Daney reports to me that the patch works OK for both test cases on
mipsel-linux.
Jerry