summaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-30 18:22:47 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-30 18:22:47 +0000
commitbc653e6beb45e546fda7659bb1a520785431e9fa (patch)
treea9bbd7e0ea2545f534a590a6bf549e7dcd6b1bae /gcc/fortran
parent1f0fdcb36cf86e0c8d635892b56fb1405142ac66 (diff)
downloadgcc-bc653e6beb45e546fda7659bb1a520785431e9fa.tar.gz
fortran/
2006-10-30 Tobias Burnus <burnus@net-b.de> PR fortran/29452 * io.c (check_io_constraints): Fix keyword string comparison. libgfortran/ 2006-10-30 Tobias Burnus <burnus@net-b.de> PR fortran/29452 * runtime/string.c (compare0): Check whether string lengths match. testsuite/ 2006-10-30 Tobias Burnus <burnus@net-b.de> PR fortran/29452 * gfortran.dg/write_check.f90: Check run-time keyword checking. * gfortran.dg/write_check2.f90: Check compile-time keyword checking git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118191 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog7
-rw-r--r--gcc/fortran/io.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 25ace324b40..f6ea47990e6 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-30 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/29452
+ * io.c (check_io_constraints): Fix keyword string comparison.
+
2006-10-30 Andrew Pinski <pinskia@gmail.com>
PR fortran/29410
@@ -149,7 +154,7 @@
* io.c (gfc_match_close): Ensure that status is terminated by
a NULL element.
-2006-10-16 Tobias Burnus <burnus@net-b.de>
+2006-10-16 Tobias Burnus <burnus@net-b.de>
* trans-stmt.c: Fix a typo
* invoke.texi: Fix typos
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c
index cbb7cf90b06..ae9df4a967b 100644
--- a/gcc/fortran/io.c
+++ b/gcc/fortran/io.c
@@ -2701,8 +2701,8 @@ if (condition) \
if (expr->expr_type == EXPR_CONSTANT && expr->ts.type == BT_CHARACTER)
{
const char * advance = expr->value.character.string;
- not_no = strncasecmp (advance, "no", 2) != 0;
- not_yes = strncasecmp (advance, "yes", 2) != 0;
+ not_no = strcasecmp (advance, "no") != 0;
+ not_yes = strcasecmp (advance, "yes") != 0;
}
else
{