From 9f3a481e08cbcce98793b3c7a78045e4e9621493 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Wed, 1 May 2019 19:47:51 +0000 Subject: [PATCH] module.c (write_module): Initialize module_column before writing module to ensure line break occurs at... * module.c (write_module): Initialize module_column before writing module to ensure line break occurs at correct column From-SVN: r270777 --- gcc/fortran/ChangeLog | 5 +++++ gcc/fortran/module.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 2d76d9cb5bb..387bf1b4dda 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2019-05-01 Andrew Benson + + * module.c (write_module): Initialize module_column before writing + module to ensure line break occurs at correct column. + 2019-05-01 Dominique d'Humieres PR fortran/60144 diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index 3e1ffedd8ee..9c8ae13e0ef 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -6052,6 +6052,9 @@ write_module (void) { int i; + /* Initialize the column counter. */ + module_column = 1; + /* Write the operator interfaces. */ mio_lparen (); -- 2.30.2