aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2013-03-30 10:19:02 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2013-03-30 10:19:02 +0000
commit01446eb82c798ed19f8930dd3470f9d77522c22e (patch)
tree2268fa99cea63797dc549729fa965505d884280a /gcc/function.c
parent032951216cf00d9609fbba89186331bd7b4d9efd (diff)
downloadgcc-01446eb82c798ed19f8930dd3470f9d77522c22e.zip
gcc-01446eb82c798ed19f8930dd3470f9d77522c22e.tar.gz
gcc-01446eb82c798ed19f8930dd3470f9d77522c22e.tar.bz2
trans-expr.c (build_memcmp_call): New function.
2013-03-30 Thomas Koenig <tkoenig@gcc.gnu.org> * trans-expr.c (build_memcmp_call): New function. (gfc_build_compare_string): If the strings compared have constant and equal lengths and the strings are kind=1, or, for kind=4 strings, the test is for (in)equality, use memcmp(). 2013-03-30 Thomas Koenig <tkoenig@gcc.gnu.org> * gfortran.dg/character_comparison_3.f90: Adjust for use of memcmp for constant and equal string lengths. * gfortran.dg/character_comparison_5.f90: Likewise. * gfortran.dg/character_comparison_9.f90: New test. From-SVN: r197261
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions