All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] glibc-2.3.3: a warning with gcc-3.3 become an error with gcc-3.5
@ 2004-03-01 18:43 Joel Soete
  2004-03-01 19:38 ` Carlos O'Donell
  0 siblings, 1 reply; 28+ messages in thread
From: Joel Soete @ 2004-03-01 18:43 UTC (permalink / raw)
  To: parisc-linux; +Cc: Carlos O'Donell

Hi all,

As the title mail said, the following warning with gcc-3.3:
../sysdeps/hppa/fpu/feupdateenv.c: In function `feupdateenv':
../sysdeps/hppa/fpu/feupdateenv.c:31: warning: assignment of read-only member
`__status_word'

become an error with gcc-3.5:
../sysdeps/hppa/fpu/feupdateenv.c: In function `feupdateenv':
../sysdeps/hppa/fpu/feupdateenv.c:31: error: assignment of read-only member
`__status_word'
make[2]: *** [/Develop/parisc-linux/build/glibc/math/feupdateenv.o] Error
1
make[2]: Leaving directory `/Develop/parisc-linux/sources/glibc-2.3.3-20040301/math'
make[1]: *** [math/others] Error 2
make[1]: Leaving directory `/Develop/parisc-linux/sources/glibc-2.3.3-20040301'
make: *** [all] Error 2

And regarding the definition of feupdateenv():
int
feupdateenv (const fenv_t *envp)
[snip]

I couldn't blame gcc.

So I would suggest to use sysdeps/mips/fpu/feupdateenv.c as model:
int
feupdateenv (const fenv_t *envp)
{
  int temp;

  /* Save current exceptions.  */
  _FPU_GETCW (temp);
  temp &= FE_ALL_EXCEPT;

  /* Install new environment.  */
  fesetenv (envp);

  /* Raise the safed exception.  Incidently for us the implementation
     defined format of the values in objects of type fexcept_t is the
     same as the ones specified using the FE_* constants.  */
  feraiseexcept (temp);

  /* Success.  */
  return 0;
}

but replacing:
 * 'int temp;' by 'fenv_t *temp;'
 * '_FPU_GETCW (temp);' by 'fegetenv(temp);' (as we don't have _FPU_GETCW()
)

But not sure it's the best solution.

Thanks in advance for all advise,
    Joel


----------------------------------------------------------------------------------------
Tiscali ADSL: 19,50 €/mois, pendant 3 mois! L'Internet rapide, c'est pour
tout le monde.
http://reg.tiscali.be/default.asp?lg=fr

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2004-04-28 17:32 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-01 18:43 [parisc-linux] glibc-2.3.3: a warning with gcc-3.3 become an error with gcc-3.5 Joel Soete
2004-03-01 19:38 ` Carlos O'Donell
2004-03-02 14:59   ` Joel Soete
2004-03-02 15:27     ` Matthew Wilcox
2004-04-02 18:03       ` [parisc-linux] [PATCH] glibc-2.3.3 error with debian unstable compiler Carlos O'Donell
2004-04-06 10:46         ` [parisc-linux] " Joel Soete
2004-04-06 13:14           ` Carlos O'Donell
2004-04-20 12:22           ` Joel Soete
2004-04-20 19:35             ` Carlos O'Donell
2004-04-21  6:15               ` Joel Soete
2004-04-21 11:55                 ` Carlos O'Donell
2004-04-27  7:04                   ` Joel Soete
2004-04-27 14:57                     ` Carlos O'Donell
2004-04-27 17:06                       ` Joel Soete
2004-04-27 17:15                         ` Carlos O'Donell
2004-04-28  5:39                           ` Joel Soete
2004-04-28  9:31                             ` Joel Soete
2004-04-28 15:54                               ` Carlos O'Donell
2004-04-28 16:29                                 ` Joel Soete
2004-04-28 17:32                                   ` Joel Soete
2004-03-02 19:50     ` [parisc-linux] glibc-2.3.3: a warning with gcc-3.3 become an error with gcc-3.5 Carlos O'Donell
2004-03-06 22:14       ` Joel Soete
2004-03-06 22:57         ` Carlos O'Donell
2004-03-07 11:07           ` Joel Soete
2004-03-07 20:59             ` Carlos O'Donell
2004-03-14 16:21           ` Joel Soete
2004-03-14 19:26             ` Carlos O'Donell
2004-03-14 19:44               ` Joel Soete

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.