From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19966 invoked by alias); 6 Dec 2001 12:31:11 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 19945 invoked from network); 6 Dec 2001 12:31:09 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 6 Dec 2001 12:31:09 -0000 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id AAE0C1E0E2; Thu, 6 Dec 2001 13:31:08 +0100 (MET) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f To: Gerald Pfeifer Cc: Per Bothner , Subject: Re: misleading statement in bugs.html#known References: X-Yow: I have seen these EGG EXTENDERS in my Supermarket.. .. I have read the INSTRUCTIONS... From: Andreas Schwab Date: Thu, 06 Dec 2001 04:46:00 -0000 In-Reply-To: (Gerald Pfeifer's message of "Thu, 6 Dec 2001 12:39:43 +0100 (CET)") Message-ID: User-Agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.1.30 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2001-12/txt/msg00271.txt.bz2 Gerald Pfeifer writes: |> On 5 Dec 2001, Andreas Schwab wrote: |> >|> The point is that glibc allows you to *assign* to stdin, so it is |> >|> no longer constant. This is a questionable feature.. |> > No. The real reason is that using the address of a static object is a |> > nightmare in context of maintaining binary compatibility. Platforms t= hat |> > use copy relocations will lose if the size of the FILE type changes. |>=20 |> Would (one of) you (who knows this stuff) mind updating bugs.html? How about this: --- bugs.html.~1.45.~ Sun Nov 4 00:14:32 2001 +++ bugs.html Thu Dec 6 13:29:35 2001 @@ -276,10 +276,10 @@ =20 will not compile with GNU libc (GNU/Linux libc6), because -stdin is not a constant. This was done deliberately, in -order for there to be no limit on the number of open FILE -objects. It is surprising for people used to traditional Unix C -libraries, but it is permitted by the C standard.

+stdin is not a constant. This was done deliberately, to make +it easier to maintain binary compatibility when the type FILE +needs to be changed. It is surprising for people used to traditional Unix +C libraries, but it is permitted by the C standard.

=20

This construct commonly occurs in code generated by old versions of lex or yacc. We suggest you try regenerating the parser with a Andreas. --=20 Andreas Schwab "And now for something Andreas.Schwab@suse.de completely different." SuSE Labs, SuSE GmbH, Schanz=E4ckerstr. 10, D-90443 N=FCrnberg Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5