Message ID | 1509345355.30471.9.camel@tuliptree.org |
---|---|
State | New |
Headers | show |
Series | fix AIX fortran builds | expand |
Hi Jim, > If I add a call to gcc_unreachable after the longjmp call, then it > builds on both linux and AIX. Anyone have a better idea on how to fix > this? If I don't get any responses in a few days, I will check it in > under the obvious rule, since it fixes a build failure. The patch is OK. Thanks! Regards Thomas
2017-10-29 Jim Wilson <wilson@tuliptree.org> gcc/fortran/ * parse.c (unexpected_eof): Call gcc_unreachable before return. Index: gcc/fortran/parse.c =================================================================== --- gcc/fortran/parse.c (revision 254210) +++ gcc/fortran/parse.c (working copy) @@ -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 (); }