[Bug libfortran/50192] Wrong character comparision with wide strings

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 30 21:48:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50192

--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-08-30 21:36:53 UTC ---
Author: tkoenig
Date: Tue Aug 30 21:36:48 2011
New Revision: 178341

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

    Backport from trunk
    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-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

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


Added:
    branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/widechar_compare_1.f90
Modified:
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/libgfortran/ChangeLog
    branches/gcc-4_5-branch/libgfortran/intrinsics/string_intrinsics.c
    branches/gcc-4_5-branch/libgfortran/intrinsics/string_intrinsics_inc.c
    branches/gcc-4_5-branch/libgfortran/libgfortran.h



More information about the Gcc-bugs mailing list