This is the mail archive of the
mailing list for the GCC project.
Re: system.h and system header include cleanup - ORTHOGONAL POINTS
- From: "N.M. Maclaren" <nmm1 at cam dot ac dot uk>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: 27 Nov 2010 10:16:27 +0000
- Subject: Re: system.h and system header include cleanup - ORTHOGONAL POINTS
- References: <Pine.LNX.email@example.com>
On Nov 27 2010, Joseph S. Myers wrote:
GET_ENVIRONMENT was a macro ...
... and plenty of plain uses of getenv,
I think that I recall the history of that (and it's wider than gcc),
but the world has moved in the direction you have changed the code.
What was a good idea then is merely confusing now.
fortran/gfortran.h had a pile of definitions related to alloca. If
such were needed, system.h would be the right place for them, but
since the rest of GCC uses alloca without needing such definitions I
just removed them.
Do you know if any of those rely on function-scope lifetime rather than
block-scope lifetime and are in code that is needed for bootstrapping?
I am still trying to find out where the world is going in this respect,
and it is most unclear.