2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Feb 2016 22:53:31 +0000 (22:53 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Feb 2016 22:53:31 +0000 (22:53 +0000)
PR fortran/61156
* scanner.c (add_path_to_list): If include path is not a directory,
issue a fatal error.

PR fortran/61156
* gfortran.dg/include_6.f90: Update test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233649 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/scanner.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/include_6.f90

index 7e0b882..6614793 100644 (file)
@@ -1,3 +1,9 @@
+2016-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/61156
+       * scanner.c (add_path_to_list): If include path is not a directory,
+       issue a fatal error.
+
 2016-02-23  Andre Vehreschild  <vehre@gcc.gnu.org>
 
        PR fortran/67451
index c1d7945..c4e7974 100644 (file)
@@ -336,7 +336,7 @@ add_path_to_list (gfc_directorylist **list, const char *path,
     }
   else if (!S_ISDIR (st.st_mode))
     {
-      gfc_warning_now (0, "%qs is not a directory", path);
+      gfc_fatal_error ("%qs is not a directory", path);
       return;
     }
 
index 8a9e3a0..2e524ec 100644 (file)
@@ -1,3 +1,8 @@
+2016-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/61156
+       * gfortran.dg/include_6.f90: Update test.
+
 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
 
        PR objc/69844
index 0bac390..f5bb085 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do compile }
 ! { dg-options "-I gfortran.log" }
-! { dg-warning "is not a directory" "" { target *-*-* } 0 }
+! { dg-error "is not a directory" "" { target *-*-* } 0 }
+! { dg-prune-output "compilation terminated." }
 end