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: Mon, 14 Apr 2014 11:03:02 +0200
- Subject: Re: Hurd port for gcc go PATCH 7-9 (9)
- Authentication-results: sourceware.org; auth=none
- References: <1397221055 dot 1276 dot 122 dot camel at G3620 dot my dot own dot domain> <20140411205542 dot GN7323 at type dot home dot polyno dot me> <1397462343 dot 32143 dot 20 dot camel at G3620 dot my dot own dot domain>
Svante Signell, le Mon 14 Apr 2014 09:59:03 +0200, a écrit :
> > > @@ -528,6 +538,8 @@
> > >
> > > # The stat type.
> > > # Prefer largefile variant if available.
> > > +# Special treatment of st_dev for GNU/Hurd
> > > +# /usr/include/i386-gnu/bits/stat.h: #define st_dev st_fsid
> > > stat=`grep '^type _stat64 ' gen-sysinfo.go || true`
> > > if test "$stat" != ""; then
> > > grep '^type _stat64 ' gen-sysinfo.go
> > > @@ -536,6 +548,7 @@
> > > fi | sed -e 's/type _stat64/type Stat_t/' \
> > > -e 's/type _stat/type Stat_t/' \
> > > -e 's/st_dev/Dev/' \
> > > + -e 's/st_fsid/Dev/' \
> > > -e 's/st_ino/Ino/g' \
> > > -e 's/st_nlink/Nlink/' \
> > > -e 's/st_mode/Mode/' \
>
> Don't know if any other system defines st_fsid as st_dev like Hurd does.
> If not this one would be fine too?
I don't know any other system doing it, but a sed rule can't hurt even
if there is no occurrence...
Samuel