From: Andrew Benson Date: Wed, 1 May 2019 19:47:51 +0000 (+0000) Subject: module.c (write_module): Initialize module_column before writing module to ensure... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f3a481e08cbcce98793b3c7a78045e4e9621493;p=gcc.git 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 --- 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 ();