frontend-passes: (optimize_lexical_comparison): New function.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 4 Apr 2011 20:55:02 +0000 (20:55 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 4 Apr 2011 20:55:02 +0000 (20:55 +0000)
commit9046a4dcc9e0c7c94f5f917740097d954d2c868d
tree82f9b1e3bdf10c2b9aeeb4ffe439dd074f6a47c5
parent128e09f93d6fa5fc367ad2be059c6dd674ef1049
frontend-passes: (optimize_lexical_comparison): New function.

2010-04-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

* frontend-passes: (optimize_lexical_comparison): New function.
(optimize_expr): Call it.
(optimize_comparison): Also handle lexical comparison functions.
Return false instad of -2 for unequal comparison.

2010-04-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

* gfortran.dg/character_comparison_8.f90:  New test.

From-SVN: r171953
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/character_comparison_8.f90 [new file with mode: 0644]