From 49decb35816f12d95fe5cc40739fa7f40f8d407a Mon Sep 17 00:00:00 2001 From: dfranke Date: Fri, 14 Dec 2007 10:25:12 +0000 Subject: [PATCH] 2007-12-14 Daniel Franke PR fortran/34324 * module.c (parse_atom): Fixed parsing of modules files whose lines are terminated by CRLF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130928 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/fortran/ChangeLog | 6 ++++++ gcc/fortran/module.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index e0cdc78d570..1000705a2fb 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2007-12-14 Daniel Franke + + PR fortran/34324 + * module.c (parse_atom): Fixed parsing of modules files whose + lines are terminated by CRLF. + 2007-12-13 Anton Korobeynikov * trans-decl.c (gfc_build_builtin_function_decls): Correct decl diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index c48bc68f9b2..9cb082a4f78 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -1116,7 +1116,7 @@ parse_atom (void) { c = module_char (); } - while (c == ' ' || c == '\n'); + while (c == ' ' || c == '\r' || c == '\n'); switch (c) { -- 2.11.0