summaryrefslogtreecommitdiff
path: root/gcc/fortran/gfortranspec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/gfortranspec.c')
-rw-r--r--gcc/fortran/gfortranspec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/fortran/gfortranspec.c b/gcc/fortran/gfortranspec.c
index 2d732fdd45b..4d939a05bf8 100644
--- a/gcc/fortran/gfortranspec.c
+++ b/gcc/fortran/gfortranspec.c
@@ -472,9 +472,8 @@ For more information about these matters, see the file named COPYING\n\n"));
int
lang_specific_pre_link (void)
{
- if (spec_file)
- free (spec_file);
- else if (library)
+ free (spec_file);
+ if (spec_file == NULL && library)
do_spec ("%:include(libgfortran.spec)");
return 0;