r197261 - in /trunk/gcc: fortran/trans-expr.c t...

tkoenig@gcc.gnu.org tkoenig@gcc.gnu.org
Sat Mar 30 10:19:00 GMT 2013


Author: tkoenig
Date: Sat Mar 30 10:19:02 2013
New Revision: 197261

URL: http://gcc.gnu.org/viewcvs?rev=197261&root=gcc&view=rev
Log:
2013-03-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

	* trans-expr.c (build_memcmp_call):  New function.
	(gfc_build_compare_string):  If the strings
	compared have constant and equal lengths and
	the strings are kind=1, or, for kind=4 strings,
	the test is for (in)equality, use memcmp().

2013-03-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

	* gfortran.dg/character_comparison_3.f90:  Adjust for use of memcmp
	for constant and equal string lengths.
	* gfortran.dg/character_comparison_5.f90:  Likewise.
	* gfortran.dg/character_comparison_9.f90:  New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/character_comparison_9.f90
Modified:
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/gfortran.dg/character_comparison_3.f90
    trunk/gcc/testsuite/gfortran.dg/character_comparison_5.f90



More information about the Gcc-cvs mailing list