This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.4/3.5 PATCH: Fix Solaris 10 libjava bootstrap failure
Rainer Orth writes:
> Andrew Haley writes:
>
> > who includes it? Is this a Solaris bug?
>
> The route is via <sys/signal.h> -> <sys/ucontext.h> -> <sys/regset.h> ->
> <ia32/sys/reg.h>. The inclusion of <sys/ucontext.h>, which triggers this
> in the first place, is controlled by a convoluted expression related to
> XPG4.2 conformance.
>
> You may be right, this could be a Solaris bug, on the other hand, using a
> variable named PC seems like a problem waiting to happen on other platforms
> as well.
Perhaps, although not using capitalized names is just a matter of
convention. The system is treading on the user's name space!
Anyway, I don't know why that file includes java-signal.h at all: it
should not.
Try removing
#include <java-signal.h>
from interpret.cc.
Andrew.