From: James E Wilson Date: Tue, 31 Oct 2017 16:04:19 +0000 (-0700) Subject: Fix fortran build error on AIX. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e36e11e2d3ba4cafa9e6523d161b7ffc9023672;p=gcc.git Fix fortran build error on AIX. gcc/fortran/ * parse.c (unexpected_eof): Call gcc_unreachable before return. From-SVN: r254270 --- 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 (); }