[patch, fortran] PR34540 and 34387 cshift, eoshift, kind=1 and kind=2 arguments.
Jerry DeLisle
jvdelisle@verizon.net
Sun Jan 6 12:16:00 GMT 2008
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.
Jerry
2008-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/34387
* trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
the dummy variable expression, test for NULL, and pass the variable
address to the called function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr34387.diff
Type: text/x-patch
Size: 1263 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080106/9a6995d0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: optional_dim_3.f90
Type: text/x-fortran
Size: 1760 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080106/9a6995d0/attachment-0001.bin>
More information about the Gcc-patches
mailing list