This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Command line options and pragmas
- From: Robert Dewar <dewar at adacore dot com>
- To: David Taylor <dtaylor at emc dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 09 Jan 2006 13:53:30 -0500
- Subject: Re: Command line options and pragmas
- References: <200601091846.k09IkLhk001021@mailhub.lss.emc.com>
David Taylor wrote:
. For starters, does this sound reasonable? That is, if I implemented
this, and we contributed it back, would it be considered? Or would it
likely be rejected out of hand?
To me, it seems better to handle this in the external environment with
appropriate
build tools. For example, in the GNAT world, we rely on the project
manager to
handle this kind of thing, using a project file that specifies
appropriate options, on
a file by file basis if needed).
Putting the options in the source file seems a confusion of concerns,
since these
are highly non-portable and have nothing to do with the source language.