aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/module.c
diff options
context:
space:
mode:
authorAndrew Benson <abensonca@gmail.com>2019-05-01 19:47:51 +0000
committerAndrew Benson <abensonca@gcc.gnu.org>2019-05-01 19:47:51 +0000
commit9f3a481e08cbcce98793b3c7a78045e4e9621493 (patch)
treee53aedbc85e26dcdcac315664438200ebd2f91ce /gcc/fortran/module.c
parentdb9c37294126d7c918b0cc918bd73feade0599c2 (diff)
downloadgcc-9f3a481e08cbcce98793b3c7a78045e4e9621493.zip
gcc-9f3a481e08cbcce98793b3c7a78045e4e9621493.tar.gz
gcc-9f3a481e08cbcce98793b3c7a78045e4e9621493.tar.bz2
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
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r--gcc/fortran/module.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index 3e1ffedd8..9c8ae13 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 ();