re PR libfortran/50192 (Wrong character comparision with wide strings)
commite7898e54f4dc9563328204d6e8b886982c9c3357
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 29 Aug 2011 09:05:11 +0000 (29 09:05 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 29 Aug 2011 09:05:11 +0000 (29 09:05 +0000)
tree1ab46c59fd14bef08ca5c2d0391ae644d39ae997
parent4d59a001d319fe67785ec13d54dd58e0737d12b6
re PR libfortran/50192 (Wrong character comparision with wide strings)

2011-08-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/50192
* intrinsics/string_intrinsics.c (memcmp_char4):  New function.
* intrinsics/string_intrinsics_inc.c:  New macro MEMCMP, either
set to memcmp or memcmp_char4.
(compare_string):  Use MEMCMP, with correct size for it.
* libgfortran.h:  Add prototype for memcmp_char4.

2011-08-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/50192
* gfortran.dg/widechar_compare_1.f90:  New test.

From-SVN: r178173
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/widechar_compare_1.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/intrinsics/string_intrinsics.c
libgfortran/intrinsics/string_intrinsics_inc.c
libgfortran/libgfortran.h