This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-08-29 14:12:01 UTC ---
Author: tkoenig
Date: Mon Aug 29 14:11:54 2011
New Revision: 178238

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178238
Log:
2011-08-29  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-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]