[Patch, Fortran] dec comparisons - for approval
Mark Eggleston
mark.eggleston@codethink.co.uk
Thu Nov 21 11:05:00 GMT 2019
Please find attached an updated version of the patch originally
submitted on 15th November.
The comparisons with Holleriths are no only possible when using -fdec.
The test cases have been revised to check for errors when -fdec is not used.
OK to commit in stage 3 or delay until stage 1 in the new year?
Change logs:
gcc/fortran
   Mark Eggleston <mark.eggleston@codethink.com>
   Jim MacArthur <jim.macarthur@codethink.co.uk>
   * gfortran.texi: Update Hollerith constants support for character types
   and use in comparisons.
   * invoke.texi: Tidy up list of options. Update description of
   -fdec-char-conversions.
   * resolve.c (is_character_based): New.
   (Convert_hollerith_to_character): New. (convert_to_numeric): New.
   (resolve_operator): If both sides are character based and -fdec is
   enabled convert Hollerith to character. If an operand is Hollerith, the
   other is numeric and -fdec is enabled convert to numeric.
   (resolve_ordinary_assign): Add check for -fdec-char-conversions for
   assignment of character literals.
gcc/testsuite
   Mark Eggleston <mark.eggleston@codethink.com>
   Jim MacArthur <jim.macarthur@codethink.co.uk>
   * gfortran.dg/dec-comparison-character_1.f90: New test.
   * gfortran.dg/dec-comparison-character_2.f90: New test.
   * gfortran.dg/dec-comparison-character_3.f90: New test.
   * gfortran.dg/dec-comparison-complex_1.f90: New test.
   * gfortran.dg/dec-comparison-complex_2.f90: New test.
   * gfortran.dg/dec-comparison-complex_3.f90: New test.
   * gfortran.dg/dec-comparison-int_1.f90: New test.
   * gfortran.dg/dec-comparison-int_2.f90: New test.
   * gfortran.dg/dec-comparison-int_3.f90: New test.
   * gfortran.dg/dec-comparison-real_1.f90: New test.
   * gfortran.dg/dec-comparison-real_2.f90: New test.
   * gfortran.dg/dec-comparison-real_3.f90: New test.
   * gfortran.dg/dec-comparison.f90: New test.
--
https://www.codethink.co.uk/privacy.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dec-comparisons.patch
Type: text/x-patch
Size: 25273 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20191121/552c79a2/attachment.bin>
More information about the Fortran
mailing list