[Bug fortran/12456] please recognize Fortran STRING(K:K) as single character
--- Comment #14 from pinskia at gcc dot gnu dot org 2006-01-09 04:25 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12456
[Bug fortran/12456] please recognize Fortran STRING(K:K) as single character
--- Comment #13 from fengwang at gcc dot gnu dot org 2006-01-09 02:54 --- Subject: Bug 12456 Author: fengwang Date: Mon Jan 9 02:54:25 2006 New Revision: 109491 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109491 Log: fortran 2006-01-09 Feng Wang <[EMAIL PROTECTED]> PR fortran/12456 * trans-expr.c (gfc_to_single_character): New function that converts string to single character if its length is 1. (gfc_build_compare_string):New function that compare string and handle single character specially. (gfc_conv_expr_op): Use gfc_build_compare_string. (gfc_trans_string_copy): Use gfc_to_single_character. * trans-intrinsic.c (gfc_conv_intrinsic_strcmp): Use gfc_build_compare_string. * trans.h (gfc_build_compare_string): Add prototype. 2006-01-09 Feng Wang <[EMAIL PROTECTED]> * simplify.c (gfc_simplify_char): Use UCHAR_MAX instead of literal constant. (gfc_simplify_ichar): Get the result from unsinged char and in the range 0 to UCHAR_MAX instead of CHAR_MIN to CHAR_MAX. testsuite 2006-01-09 Feng Wang <[EMAIL PROTECTED]> PR fortran/12456 * gfortran.dg/single_char_string.f90: New test. 2006-01-09 Feng Wang <[EMAIL PROTECTED]> * gfortran.dg/ichar2.f90: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/ichar_2.f90 branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/single_char_string.f90 Modified: branches/gcc-4_1-branch/gcc/fortran/ChangeLog branches/gcc-4_1-branch/gcc/fortran/simplify.c branches/gcc-4_1-branch/gcc/fortran/trans-expr.c branches/gcc-4_1-branch/gcc/fortran/trans-intrinsic.c branches/gcc-4_1-branch/gcc/fortran/trans.h branches/gcc-4_1-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12456
[Bug fortran/12456] please recognize Fortran STRING(K:K) as single character
--- Comment #12 from fengwang at gcc dot gnu dot org 2006-01-09 02:27 --- Subject: Bug 12456 Author: fengwang Date: Mon Jan 9 02:27:45 2006 New Revision: 109489 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109489 Log: fortran ChangeLog entry: 2006-01-09 Feng Wang <[EMAIL PROTECTED]> PR fortran/12456 * trans-expr.c (gfc_to_single_character): New function that converts string to single character if its length is 1. (gfc_build_compare_string):New function that compare string and handle single character specially. (gfc_conv_expr_op): Use gfc_build_compare_string. (gfc_trans_string_copy): Use gfc_to_single_character. * trans-intrinsic.c (gfc_conv_intrinsic_strcmp): Use gfc_build_compare_string. * trans.h (gfc_build_compare_string): Add prototype. testsuite ChangeLog entry: 2006-01-09 Feng Wang <[EMAIL PROTECTED]> PR fortran/12456 * gfortran.dg/single_char_string.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/single_char_string.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-expr.c trunk/gcc/fortran/trans-intrinsic.c trunk/gcc/fortran/trans.h trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12456
[Bug fortran/12456] please recognize Fortran STRING(K:K) as single character
--- Comment #11 from pinskia at gcc dot gnu dot org 2005-12-25 04:29 --- This will also improve LAPACK too. As what shows up there is: CHARACTER a LOGICAL b a = 'a' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12456
[Bug fortran/12456] please recognize Fortran STRING(K:K) as single character
--- Comment #10 from fengwang at gcc dot gnu dot org 2005-10-25 05:31 --- This will improve 168.wupwise at lease 1%. And I have partially fixed. Patches are coming soon. -- fengwang at gcc dot gnu dot org changed: What|Removed |Added CC||fengwang at gcc dot gnu dot ||org AssignedTo|unassigned at gcc dot gnu |fengwang at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12456