Subject: Re: toolchain/22118: make won't compile with -Wcast-qual -Wstrict-prototypes and more
To: David Laight <david@l8s.co.uk>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-toolchain
Date: 07/18/2003 08:16:53
--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Jul 17, 2003 at 10:18:51PM +0100, David Laight wrote:
> > > Just be glad you aren't using the old IBM (IIRC) system which had the
> > > constants 0, 1, 2 at 'well known' addresses. This system ran FORTRAN
> > > and all arguments are passed by reference. If a routine accidentally
> > > changed a (supposedly) constant 1 that was passed to it, then the
> > > value of 1 changed for the entire OS.
> >=20
> > Still works with NetBSD f77.
>=20
> Nah - it will only change '1' for that program, not the entire OS.
This is only a side effect of having seperate copies of the address space
per program ;-)
The problem discussed in the thread - how to deal with pointers
to constants - is the same - only the scope of the damage is
bigger on ancient machines.
> PS can we have the 3-way arithmetic if?
Works fine.
-is
--=20
seal your e-mail: http://www.gnupg.org/
--5mCyUwZo2JvN/JJP
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)
iD8DBQE/F5DUPCRcZ/VMtk4RAituAJ9pEMFSh1y/oI2ueSbwGUYfFvKD7gCfTgjL
RGTZxEsjIOXnUOSU88/kU00=
=bkQE
-----END PGP SIGNATURE-----
--5mCyUwZo2JvN/JJP--