This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Command line options and pragmas
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: David Taylor <dtaylor at emc dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 9 Jan 2006 11:13:22 -0800
- Subject: Re: Command line options and pragmas
- References: <200601091846.k09IkLhk001021@mailhub.lss.emc.com>
On Mon, Jan 09, 2006 at 01:46:21PM -0500, David Taylor wrote:
> For a variety of reasons, we would like to be able to specify
> individual compilation switches *within* individual files.
You don't need a gcc modification to do that; you can arrange to get
the compiler flags from a comment in the file. A bit of scripting,
and your build system can find these comments, and either use a default
flag set or generate an error if the magic comment is not found.