[patch, fortran] PR 33162 INTRINSIC functions as ACTUAL argument
Jerry DeLisle
jvdelisle@verizon.net
Fri Oct 26 18:36:00 GMT 2007
This patch takes care of the first part of this PR. It adds checks for double
precision actual arguments for specific double intrinsic functions.
The patch is self explanatory.
Regression tested on x86-64.
OK for commit?
Jerry
2007-10-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/33162
* intrinsic.h: Add prototypes for two new functions, gfc_check_a_pd
and gfc_check_fn_d.
* intrinsic.c (add_functions): Add checks for double precision for dabs,
dacos, dacosh, dasin, dasinh, datan, datanh, datan2, dbesj0, dbesj1,
dbesy0, dbesy1, dcos, dcosh, ddim, derf, derfc, dexp, dgamma,
dlgamma, dlog, dlog10, dmod, dsign, dsin, dsinh, dsqrt, dtan, and dtanh.
Add check for real for dprod.
* check.c (gfc_check_a_pd): New function to check for double precision
argumants. (gfc_check_fn_d): Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr33162-part1.diff
Type: text/x-patch
Size: 13367 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071026/69009a14/attachment.bin>
More information about the Fortran
mailing list