summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-21 21:37:25 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-21 21:37:25 +0000
commit61fa81cc91924163fd83420c2dcfcedfbe23a641 (patch)
treed8fe1bebb6dada99658d820fef0bcdf6b8789378 /libgfortran
parentc7fe03c012a11c8b641a4e140914034e11538ca3 (diff)
downloadgcc-61fa81cc91924163fd83420c2dcfcedfbe23a641.tar.gz
* io.c (check_format): As a GNU extension, allow the comma after a
string literal to be optional in a format. Use gfc_notify_std to issue an error/warning as appropriate. * io/format.c (parse_format_list): Allow the comma after a string literal to be optional. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82109 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/io/format.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 7a2e99366d3..3eedff3926a 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-21 Roger Sayle <roger@eyesopen.com>
+
+ * io/format.c (parse_format_list): Allow the comma after a string
+ literal to be optional.
+
2004-05-18 Paul Brook <paul@codesourcery.com>
Feng Wang <fengwang@nudt.edu.cn>
diff --git a/libgfortran/io/format.c b/libgfortran/io/format.c
index 4255e29f49c..f886f7f7187 100644
--- a/libgfortran/io/format.c
+++ b/libgfortran/io/format.c
@@ -543,7 +543,7 @@ format_item:
tail->u.string.p = string;
tail->u.string.length = value;
tail->repeat = 1;
- goto between_desc;
+ goto optional_comma;
case FMT_S:
case FMT_SS: