From 5e36e11e2d3ba4cafa9e6523d161b7ffc9023672 Mon Sep 17 00:00:00 2001 From: James E Wilson Date: Tue, 31 Oct 2017 09:04:19 -0700 Subject: [PATCH] Fix fortran build error on AIX. gcc/fortran/ * parse.c (unexpected_eof): Call gcc_unreachable before return. From-SVN: r254270 --- gcc/fortran/ChangeLog | 4 ++++ gcc/fortran/parse.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 99f96dd159a..4677cec8fda 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2017-10-31 Jim Wilson + + * parse.c (unexpected_eof): Call gcc_unreachable before return. + 2017-10-30 Paul Thomas PR fortran/80850 diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c index eb0f92e734b..e4deff9c79e 100644 --- a/gcc/fortran/parse.c +++ b/gcc/fortran/parse.c @@ -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 (); } -- 2.30.2