r278674 - in /trunk/gcc: fortran/ChangeLog fort...

markeggleston@gcc.gnu.org markeggleston@gcc.gnu.org
Mon Nov 25 10:36:00 GMT 2019


Author: markeggleston
Date: Mon Nov 25 10:36:25 2019
New Revision: 278674

URL: https://gcc.gnu.org/viewcvs?rev=278674&root=gcc&view=rev
Log:
DEC comparisons - allow Hollerith constants in comparisons.

The -fdec option enables the use of Hollerith comparisons in comparisons
with INTEGER, COMPLEX, REAL and CHARACTER expressions.

	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.

	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.


Added:
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-character_1.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-character_2.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-character_3.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-complex_1.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-complex_2.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-complex_3.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-int_1.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-int_2.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-int_3.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-real_1.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-real_2.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison-real_3.f90
    trunk/gcc/testsuite/gfortran.dg/dec-comparison.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.texi
    trunk/gcc/fortran/invoke.texi
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list