From 5f5e796c9c986fd135514906a6a8f58b7d7a15d3 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Thu, 21 Nov 2019 15:06:56 +0000 Subject: [PATCH] Fix global_vars_f90_init test failure Add a missing extern to ensure the test passes with -fno-common change. Committed as obvious. testsuite/ * gfortran.dg/global_vars_f90_init_driver.c: Add missing extern. From-SVN: r278557 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gfortran.dg/global_vars_f90_init_driver.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8197698dd4f..af77dfa7c2b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-11-21 Wilco Dijkstra + + * gfortran.dg/global_vars_f90_init_driver.c: Add missing extern. + 2019-11-21 Richard Biener PR tree-optimization/92596 diff --git a/gcc/testsuite/gfortran.dg/global_vars_f90_init_driver.c b/gcc/testsuite/gfortran.dg/global_vars_f90_init_driver.c index 7869c83f712..27ba7e656d0 100644 --- a/gcc/testsuite/gfortran.dg/global_vars_f90_init_driver.c +++ b/gcc/testsuite/gfortran.dg/global_vars_f90_init_driver.c @@ -1,5 +1,5 @@ /* initialized by fortran */ -int i; +extern int i; void test_globals(void); extern void abort(void);