This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Hurd port for gcc go PATCH 7-9 (9)
- From: Samuel Thibault <samuel dot thibault at gnu dot org>
- To: Svante Signell <svante dot signell at gmail dot com>
- Cc: bug-hurd <bug-hurd at gnu dot org>, debian-hurd <debian-hurd at lists dot debian dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 6 May 2014 20:54:33 +0200
- Subject: Re: Hurd port for gcc go PATCH 7-9 (9)
- Authentication-results: sourceware.org; auth=none
- References: <1399366718 dot 13092 dot 53 dot camel at G3620 dot my dot own dot domain> <20140506090702 dot GK5788 at type dot bordeaux dot inria dot fr> <1399378434 dot 13092 dot 62 dot camel at G3620 dot my dot own dot domain>
Svante Signell, le Tue 06 May 2014 14:13:54 +0200, a écrit :
> > > +# Special treatment of EWOULDBLOCK for GNU/Hurd
> > > +# /usr/include/bits/errno.h: #define EWOULDBLOCK EAGAIN
> > > +egrep '^const EWOULDBLOCK = Errno(_EWOULDBLOCK)' ${OUT} | \
> > > + sed -i.bak -e 's/_EWOULDBLOCK/_EAGAIN/' ${OUT}
> > > +
>
> This applies to all systems yes, how to modify?
Well, either explicitly test for the system, or find a way to make it
actually do things only for the systems which need it. You could for
instance grep for "#define EWOULDBLOCK EAGAIN".
> > and that:
> >
> > > +# Special treatment of SYS_FCNTL for GNU/Hurd
> > > +if ! grep '^const SYS_FCNTL' ${OUT} >/dev/null 2>&1; then
> > > + echo "const SYS_FCNTL = 0" >> ${OUT}
> > > +fi
>
> And this applies to systems not defining FCNTL.
> How many systems could possibly be affected?
I misread it indeed, I'm sorry about that. So it adds SYS_FCNTL = 0 to
any system which does not have it already. What is the consequence of
this? Where is this used? (I can't find any go reference to SYS_FCNTL
in the gcc source)
Samuel