[PATCH] New hpux fix to add noreturn attribute to longjmp declarations in setjmp.h

John David Anglin dave.anglin@bell.net
Sat Aug 13 16:55:00 GMT 2016


Currently, trunk fails to boot fortran on hpux because of the following error:

/xxx/gnu/gcc/objdir/./prev-gcc/xg++ -B/xxx/gnu/gcc/objdir/./prev-gcc/ -B/opt/gnu64/gcc/gcc-7/hppa64-hp-hpux11.00/bin/ -nostdinc++ -B/xxx/gnu/gcc/objdir/prev-hppa64-hp-hpux11.00/libstdc++-v3/src/.libs -B/xxx/gnu/gcc/objdir/prev-hppa64-hp-hpux11.00/libstdc++-v3/libsupc++/.libs  -I/xxx/gnu/gcc/objdir/prev-hppa64-hp-hpux11
.00/libstdc++-v3/include/hppa64-hp-hpux11.00  -I/xxx/gnu/gcc/objdir/prev-hppa64-
hp-hpux11.00/libstdc++-v3/include  -I/xxx/gnu/gcc/gcc/libstdc++-v3/libsupc++ -L/xxx/gnu/gcc/objdir/prev-hppa64-hp-hpux11.00/libstdc++-v3/src/.libs -L/xxx/gnu/gc
c/objdir/prev-hppa64-hp-hpux11.00/libstdc++-v3/libsupc++/.libs -fno-PIE -c  -DIN
_GCC_FRONTEND -g -O2 -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwin
d-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-at
tribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-
overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -Ifortran -I../../gc
c/gcc -I../../gcc/gcc/fortran -I../../gcc/gcc/../include -I../../gcc/gcc/../libc
pp/include -I/opt/gnu64/gcc/gmp/include  -I../../gcc/gcc/../libdecnumber -I../..
/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace  
 -o fortran/parse.o -MT fortran/parse.o -MMD -MP -MF fortran/.deps/parse.TPo ../
../gcc/gcc/fortran/parse.c
../../gcc/gcc/fortran/parse.c: In function 'void unexpected_eof()':
../../gcc/gcc/fortran/parse.c:2618:1: error: 'noreturn' function does return [-W
error]

The attached patch fixes the above by adding the noreturn attribute to the "longjmp" declarations in setjmp.h.

Okay for trunk?

Dave
--
John David Anglin	dave.anglin@bell.net

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: setjmp.d.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160813/132f7182/attachment.txt>


More information about the Gcc-patches mailing list