This is the mail archive of the
mailing list for the GCC project.
Re: [Tru64 UNIX V5.1] gcc testsuite fixes
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Subject: Re: [Tru64 UNIX V5.1] gcc testsuite fixes
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Thu, 1 Mar 2001 15:06:54 +1100
- Cc: gcc-patches at gcc dot gnu dot org
- References: <15005.24735.909857.224750@xayide.TechFak.Uni-Bielefeld.DE>
On 28-Feb-2001, Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> wrote:
> In gcc.log, I find that compilation fails with a linker error:
> Warning: nan defined as GLOBAL DATA but is defined in a shared lib as a GLOBAL FUNC
That's only a warning. Does the link really fail?
> Wed Feb 28 20:45:52 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
> * gcc.c-torture/execute/ieee/fp-cmp-1.c: Renamed nan to dnan.
> * gcc.c-torture/execute/ieee/fp-cmp-3.c: Likewise.
> * gcc.c-torture/execute/ieee/fp-cmp-2.c: Renamed nan to fnan.
That shouldn't be necessary, at least if those tests are compiled with
`-std=c89'; in C89, `nan' is in the user's namespace, not the
implementation's, and so a user should be allowed to use that name.
If the implementation doesn't handle that case right, then it is a bug.
(Note that nan() is a standard library function that was introduced in
Fergus Henderson <firstname.lastname@example.org> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.