This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Use ucontext_t not struct ucontext in linux-unwind.h files
- From: Andreas Schwab <schwab at suse dot de>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 10 Jul 2017 10:42:43 +0200
- Subject: Re: Use ucontext_t not struct ucontext in linux-unwind.h files
- Authentication-results: sourceware.org; auth=none
- References: <alpine.DEB.2.20.1706271356170.15648@digraph.polyomino.org.uk>
On Jun 27 2017, Joseph Myers <joseph@codesourcery.com> wrote:
> Testing compilation together with current glibc with glibc's
> build-many-glibcs.py. OK to commit (mainline and active release
> branches) if that passes?
This still doesn't work on the gcc-6-branch:
In file included from ../../../libjava/prims.cc:26:0:
../../../libjava/prims.cc: In function 'void _Jv_catch_fpe(int, siginfo_t*, void*)':
./include/java-signal.h:33:26: error: invalid use of incomplete type 'struct _Jv_catch_fpe(int, siginfo_t*, void*)::ucontext'
gregset_t &_gregs = _uc->uc_mcontext.gregs; \
^
../../../libjava/prims.cc:192:3: note: in expansion of macro 'HANDLE_DIVIDE_OVERFLOW'
HANDLE_DIVIDE_OVERFLOW;
^~~~~~~~~~~~~~~~~~~~~~
./include/java-signal.h:32:10: note: forward declaration of 'struct _Jv_catch_fpe(int, siginfo_t*, void*)::ucontext'
struct ucontext *_uc = (struct ucontext *)_p; \
^
../../../libjava/prims.cc:192:3: note: in expansion of macro 'HANDLE_DIVIDE_OVERFLOW'
HANDLE_DIVIDE_OVERFLOW;
^~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:9968: prims.lo] Error 1
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."