[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GCC 3.4 fixes and small io_seek fix
From: |
Jeroen Dekkers |
Subject: |
Re: GCC 3.4 fixes and small io_seek fix |
Date: |
Fri, 07 May 2004 23:37:06 +0200 |
User-agent: |
Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
At 07 May 2004 17:16:23 -0400,
James Morrison wrote:
>
> Jeroen Dekkers <jeroen@dekkers.cx> writes:
>
> > The first part of this patch makes the Hurd compile with gcc
> > 3.4. Because gcc 3.4 omits all unused code, you've to give it the
> > attribute(used) instead of unused. It also gives errors when there are
> > labels at the end of a statement and the linux code in pfinet has some
> > of those. Since pfinet is a hack anyway and I didn't want to touch too
> > much code I didn't fix it as cleanly as possible.
> >
> > The second patch fixes the bug-fseek glibc test case. POSIX requires
> > that we fail with EINVAL when the resulting file position is smaller
> > than 0.
> >
> > Jeroen Dekkers
> >
> > libstore/
> > 2004-05-07 Jeroen Dekkers <jeroen@dekkers.cx>
> >
> > * libstore/store.h (STORE_STD_CLASS): Use attribute(used) instead
> > of unused.
> >
>
> Wouldn't it be better to check which version of gcc is being used and then
> use the correct attribute instead of blindly using used or unused.
The used attribute is supported since at least gcc 3.1. I also
compiled and tested the code with gcc 3.3 and it seemed to work fine.
Jeroen Dekkers