From e96e22e379b2e9773c48d9ea476be5d72a311d96 Mon Sep 17 00:00:00 2001 From: Daniel Franke Date: Fri, 14 Dec 2007 05:25:12 -0500 Subject: [PATCH] re PR fortran/34324 (Module files on CRLF systems) 2007-12-14 Daniel Franke PR fortran/34324 * module.c (parse_atom): Fixed parsing of modules files whose lines are terminated by CRLF. From-SVN: r130928 --- 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 e0cdc78d5704..1000705a2fb3 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 c48bc68f9b2e..9cb082a4f782 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.47.2