]> git.ipfire.org Git - thirdparty/gcc.git/commit
2012-05-11 Thomas Koenig <tkoenig@gcc.gnu.org>
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 May 2012 13:56:06 +0000 (13:56 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 May 2012 13:56:06 +0000 (13:56 +0000)
commiteba36973e2376268fbafb14dbdf9a813b228e650
treedb9f42f0ecca3a64aeac5cab33193f75cc50545c
parent4e9c48c8e35d45adbe7139a57c860924f4de4847
2012-05-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/52537
* frontend-passes.c (optimize_op):  Change
old-style comparison operators to new-style, simplify
switch as a result.
(empty_string):  New function.
(get_len_trim_call):  New function.
(optimize_comparison):  If comparing to an empty string,
use comparison of len_trim to zero.
Use new-style comparison operators only.
(optimize_trim):  Use get_len_trim_call.

2012-05-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/52537
* gfortran.dg/string_compare_4.f90:  New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187406 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/string_compare_4.f90 [new file with mode: 0644]