]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix fortran build error on AIX.
authorJames E Wilson <wilson@tuliptree.org>
Tue, 31 Oct 2017 16:04:19 +0000 (09:04 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 31 Oct 2017 16:04:19 +0000 (09:04 -0700)
gcc/fortran/
* parse.c (unexpected_eof): Call gcc_unreachable before return.

From-SVN: r254270

gcc/fortran/ChangeLog
gcc/fortran/parse.c

index 99f96dd159a256795f89ac5057500b3841705a40..4677cec8fda150f32e15a9fe3b4bba582d8ee093 100644 (file)
@@ -1,3 +1,7 @@
+2017-10-31  Jim Wilson  <wilson@tuliptree.org>
+
+       * parse.c (unexpected_eof): Call gcc_unreachable before return.
+
 2017-10-30  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/80850
index eb0f92e734b1135158e0bac7f163a2b42706039c..e4deff9c79e01cf591ea4ba479a99c60f9386d49 100644 (file)
@@ -2737,6 +2737,9 @@ unexpected_eof (void)
   gfc_done_2 ();
 
   longjmp (eof_buf, 1);
+
+  /* Avoids build error on systems where longjmp is not declared noreturn.  */
+  gcc_unreachable ();
 }