[PR fortran/89286, patch] Intrinsic sign and GNU Extension for review
Mark Eggleston
mark.eggleston@codethink.co.uk
Tue Feb 12 09:45:00 GMT 2019
For review.
The attached patch and change logs is to treat SIGN in the same way as
DIM, MOD and MODULO in regard to the GNU extension i.e. when -std=gnu.
The change logs have no dates, they can be added when the patch is
committed provided this patch is accepted.
Note: I do not have write access to svn.
regards,
Mark
--
https://www.codethink.co.uk/privacy.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Intrinsic-sign-and-GNU-extension.patch
Type: text/x-patch
Size: 13102 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190212/e1f354f0/attachment.bin>
-------------- next part --------------
Mark Eggleston <mark.eggleston@codethink.com>
PR fortran/89286
* check.c (gfc_check_sign): Deleted.
* intrinsic.c (add_functions): Call add_sym_2 with gfc_check_a_p
instead of gfc_check_sign for "sign".
* iresolve.c (gfc_resolve_sign): Check for largest kind of the actual
arguments and convert the smaller. Set return kind to be the largest.
* simplify.c (gfc_simplify_sign): Use the largest kind of the actual
arguments for return
* intrinsic.texi: Add GNU extension notes for return value to SIGN.
-------------- next part --------------
Mark Eggleston <mark.eggleston@codethink.com>
PR fortran/89240
* gfortran.dg/sign_gnu_extension_1.f90: New test.
* gfortran.dg/sign_gnu_extension_2.f90: New test.
* gfortran.dg/pr78619.f90: Check for "must have" instead of "must be".
More information about the Fortran
mailing list